aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch-options.cli
blob: 6f7386be2c6f364314fa14f3e7e6937a26d88477 (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
// file      : bpkg/pkg-fetch-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-fetch"

"\h{SYNOPSIS}

bpkg pkg-fetch [<options>] (<pkg> <ver>)|(-a <archive>)"

"\h{DESCRIPTION}

The \cb{pkg-fetch} command fetches the archive for the specified package
name and version from one of the configuration's repositories. If the
\cb{-a|--archive} option is used, then instead of the name and version
arguments, \cb{pkg-fetch} expects a local path to the package archive
file. In this case, \cb{bpkg} will use the archive in place, without
copying it to the configuration or package cache directories. It will
also not attempt to remove the archive if the package is purged with
the \cb{pkg-purge} command."
*/

namespace bpkg
{
  class pkg_fetch_options: common_options
  {
    dir_path --directory | -d (".")
    {
      "<dir>",
      "Assume configuration is in <dir> rather than in the current working
       directory."
    };

    bool --archive | -a
    {
      "Treat the argument as a package archive path rather than package
       name/version to fetch."
    };
  };
}