aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-add.cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-12-23 19:05:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-12-28 17:39:03 +0300
commit42ae47c3033a8c9ce70f1e6fb4c88ed70ac679fb (patch)
treebdd2cdbf35b4dfbfbc77763156182f03d497ad16 /bpkg/rep-add.cli
parentdc5296af63000cddc4b46fc205137c20578cb81f (diff)
Add repository type detection
Diffstat (limited to 'bpkg/rep-add.cli')
-rw-r--r--bpkg/rep-add.cli12
1 files changed, 12 insertions, 0 deletions
diff --git a/bpkg/rep-add.cli b/bpkg/rep-add.cli
index cbd73a4..eddea45 100644
--- a/bpkg/rep-add.cli
+++ b/bpkg/rep-add.cli
@@ -2,6 +2,8 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
+include <libbpkg/manifest.hxx>;
+
include <bpkg/configuration.cli>;
"\section=1"
@@ -28,5 +30,15 @@ namespace bpkg
class rep_add_options: configuration_options
{
"\h|REP-ADD OPTIONS|"
+
+ repository_type --type
+ {
+ "<type>",
+ "Specify the repository type with valid values being \cb{bpkg} and
+ \cb{git}. Normally the repository type can be automatically guessed by
+ examining its URL (for example, the presence of the \cb{.git}
+ extension) or, in case of a local repository, its content (for example,
+ the presence of the \cb{.git} subdirectory)."
+ }
};
}