aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-info-options.cli
blob: 2d8b45ee0bf15a9779854772491a49e162725a43 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
// file      : bpkg/rep-info-options.cli
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

include <bpkg/common-options.cli>;

"\section=1"
"\name=bpkg-rep-info"
"\summary=print information about repository"

/*
"\h{SYNOPSIS}

bpkg rep-info [<options>] <rep>"

"\h{DESCRIPTION}

The \cb{rep-info} command prints information about the specified repository.
By default it print the repository's name and location as the first line
followed by the list of prerequisite/complement repositories and the list
of available packages. This default behavior, however, can be altered in
various ways using options listed below. Note that the information is
written to \cb{STDOUT}, not \cb{STDERR}."
*/

namespace bpkg
{
  class rep_info_options: common_options
  {
    bool --name|-n
    {
      "Print the specified repository's name and location."
    }

    bool --repositories|-r
    {
      "Print information about prerequisite/complement repositories."
    }

    bool --packages|-p
    {
      "Print information about available packages."
    }

    bool --manifest|-m
    {
      "Instead of printing the information in the human-readable form, dump
       it as manifest(s). Normally you would use this option in combination
       with \cb{--packages|-p} or \cb{--repositories|-r} to only dump one
       of the manifests."
    }
  };
}