From 6be9c7746f92aa721782a4d0eaff5f901fc528cd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Mar 2018 10:34:57 +0200 Subject: Setup command line infrastructure for new command --- bdep/project.cli | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'bdep/project.cli') 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 ; namespace bdep { + // Common options for commands that accept @. + // + class configuration_name_options: common_options + { + // Storage for configuration names specified as @. + // + // 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 @. - // - // Note that we leave it undocumented so that it's not mentioned in - // documentation. - // - strings --config-name; - dir_paths --directory|-d { "", -- cgit v1.1