aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-verify-options.cli
blob: 2a6962358f2b5bc49e00599423215068d0fc3626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// file      : bpkg/pkg-verify-options.cli
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

include <bpkg/common-options.cli>;

"\section=1"
"\name=bpkg-pkg-verify"
"\summary=verify archive is a valid package"

/*
"\h{SYNOPSIS}

bpkg pkg-verify <archive>"

"\h{DESCRIPTION}

The \cb{pkg-verify} command verifies that the specified archive is a
valid \cb{bpkg} package. Specifically, it checks that the archive
contains a valid manifest file and that both the archive's name
and its top-level directory match the canonical <name>-<version>
form."
*/

namespace bpkg
{
  class pkg_verify_options: common_options
  {
    bool --silent
    {
      "Suppress error messages about the reason why the package is
       invalid. Just return the error status."
    }

    bool --ignore-unknown
    {
      "Ignore unknown manifest entries."
    }
  };
}