aboutsummaryrefslogtreecommitdiff
path: root/bdep/project.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-13 10:34:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-13 10:34:57 +0200
commit6be9c7746f92aa721782a4d0eaff5f901fc528cd (patch)
treead072fd130d3bb64acee0be183698daa328e8966 /bdep/project.cli
parent5dcbecfd8b83f516c067780214f06321f03d1cce (diff)
Setup command line infrastructure for new command
Diffstat (limited to 'bdep/project.cli')
-rw-r--r--bdep/project.cli21
1 files changed, 13 insertions, 8 deletions
diff --git a/bdep/project.cli b/bdep/project.cli
index cbf33a3..7680d99 100644
--- a/bdep/project.cli
+++ b/bdep/project.cli
@@ -8,10 +8,22 @@ include <bdep/common.cli>;
namespace bdep
{
+ // Common options for commands that accept @<cfg-name>.
+ //
+ class configuration_name_options: common_options
+ {
+ // Storage for configuration names specified as @<cfg-name>.
+ //
+ // Note that we leave it undocumented so that it's not mentioned in
+ // documentation.
+ //
+ strings --config-name;
+ };
+
// Common options for commands that operate on project/packages (prj-spec
// and pkg-spec) and configurations (cfg-spec).
//
- class project_options: common_options
+ class project_options: configuration_name_options
{
bool --all|-a
{
@@ -30,13 +42,6 @@ namespace bdep
"Specify the build configuration to use as an id."
};
- // Storage for configuration names specified as @<cfg-name>.
- //
- // Note that we leave it undocumented so that it's not mentioned in
- // documentation.
- //
- strings --config-name;
-
dir_paths --directory|-d
{
"<dir>",