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/bdep.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bdep/bdep.cxx') diff --git a/bdep/bdep.cxx b/bdep/bdep.cxx index 39f08ad..ef4a6ec 100644 --- a/bdep/bdep.cxx +++ b/bdep/bdep.cxx @@ -22,9 +22,10 @@ // #include -#include +#include #include #include +#include using namespace std; using namespace bdep; @@ -34,11 +35,11 @@ using namespace bdep; // Once this is done, use the "final" values of the common options to do // global initializations (verbosity level, etc). // -// If O is-a project_options, then also handle the @ arguments and -// place them into project_options::config_name. +// If O is-a configuration_name_options, then also handle the @ +// arguments and place them into configuration_name_options::config_name. // static inline bool -cfg_name (project_options* o, const char* a) +cfg_name (configuration_name_options* o, const char* a) { string n (a); @@ -264,10 +265,10 @@ try break; \ } - //COMMAND_IMPL (new_, new, "new"); - COMMAND_IMPL (config, config, "config"); + COMMAND_IMPL (new_, new, "new"); COMMAND_IMPL (init, init, "init"); COMMAND_IMPL (sync, sync, "sync"); + COMMAND_IMPL (config, config, "config"); assert (false); fail << "unhandled command"; -- cgit v1.1