Commit 0bad285f authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED backward compatibility of config options

parent 22730c96
......@@ -10,13 +10,30 @@
include <string>;
class options {
bool --help | -h {"Print usage information and exit."};
bool --version | -v {"Print CamiTK version message"};
bool --config | -c {"Print all information for a complete CamiTK diagnosis and exit"};
bool --print-paths | -p {"Print CamiTK paths on the standard output and exit"};
bool --camitk-dir | -d {"Print CAMITK_DIR (the installation directory) and exit"};
bool --short-version | -s {"Print CamiTK short version string"};
bool --complete-version | -vv {"Print CamiTK complete version number (including patch number)"};
bool --time-stamp | -t {"Generate a time stamp in format YYYY-MM-DDTHH:mm:ss from current system date and time"};
bool --bug-report-info | -b {"Generate a report bug template with the CamiTK diagnosis in it"};
bool --help | -h
{"Print usage information and exit."};
bool --version | -v
{"Print CamiTK version message"};
bool --config | -c
{"Print all information for a complete CamiTK diagnosis and exit"};
bool --print-paths | -p
{"Print CamiTK paths on the standard output and exit"};
bool --camitk-dir | -d | --camitkDir
{"Print CAMITK_DIR (the installation directory) and exit"};
bool --short-version | -s | --shortVersion
{"Print CamiTK short version string"};
bool --complete-version | -vv
{"Print CamiTK complete version number (including patch number)"};
bool --time-stamp | -t
{"Generate a time stamp in format YYYY-MM-DDTHH:mm:ss from current system date and time"};
bool --bug-report-info | -b
{"Generate a report bug template with the CamiTK diagnosis in it"};
};
......@@ -409,27 +409,30 @@ options (::cli::scanner& s,
void options::
print_usage (::std::ostream& os)
{
os << "--help|-h Print usage information and exit." << ::std::endl;
os << "--help|-h Print usage information and exit." << ::std::endl;
os << "--version|-v Print CamiTK version message" << ::std::endl;
os << "--version|-v Print CamiTK version message" << ::std::endl;
os << "--config|-c Print all information for a complete CamiTK diagnosis and" << ::std::endl
<< " exit" << ::std::endl;
os << "--config|-c Print all information for a complete CamiTK" << ::std::endl
<< " diagnosis and exit" << ::std::endl;
os << "--print-paths|-p Print CamiTK paths on the standard output and exit" << ::std::endl;
os << "--print-paths|-p Print CamiTK paths on the standard output and" << ::std::endl
<< " exit" << ::std::endl;
os << "--camitk-dir|-d Print CAMITK_DIR (the installation directory) and exit" << ::std::endl;
os << "--camitk-dir|-d|--camitkDir Print CAMITK_DIR (the installation directory)" << ::std::endl
<< " and exit" << ::std::endl;
os << "--short-version|-s Print CamiTK short version string" << ::std::endl;
os << "--short-version|-s|--shortVersion Print CamiTK short version string" << ::std::endl;
os << "--complete-version|-vv Print CamiTK complete version number (including patch" << ::std::endl
<< " number)" << ::std::endl;
os << "--complete-version|-vv Print CamiTK complete version number" << ::std::endl
<< " (including patch number)" << ::std::endl;
os << "--time-stamp|-t Generate a time stamp in format YYYY-MM-DDTHH:mm:ss from" << ::std::endl
<< " current system date and time" << ::std::endl;
os << "--time-stamp|-t Generate a time stamp in format" << ::std::endl
<< " YYYY-MM-DDTHH:mm:ss from current system date" << ::std::endl
<< " and time" << ::std::endl;
os << "--bug-report-info|-b Generate a report bug template with the CamiTK diagnosis" << ::std::endl
<< " in it" << ::std::endl;
os << "--bug-report-info|-b Generate a report bug template with the CamiTK" << ::std::endl
<< " diagnosis in it" << ::std::endl;
}
typedef
......@@ -462,10 +465,14 @@ struct _cli_options_map_init
&::cli::thunk< options, bool, &options::camitk_dir_ >;
_cli_options_map_["-d"] =
&::cli::thunk< options, bool, &options::camitk_dir_ >;
_cli_options_map_["--camitkDir"] =
&::cli::thunk< options, bool, &options::camitk_dir_ >;
_cli_options_map_["--short-version"] =
&::cli::thunk< options, bool, &options::short_version_ >;
_cli_options_map_["-s"] =
&::cli::thunk< options, bool, &options::short_version_ >;
_cli_options_map_["--shortVersion"] =
&::cli::thunk< options, bool, &options::short_version_ >;
_cli_options_map_["--complete-version"] =
&::cli::thunk< options, bool, &options::complete_version_ >;
_cli_options_map_["-vv"] =
......
......@@ -34,10 +34,10 @@ Print all information for a complete CamiTK diagnosis and exit
.IP "\fB--print-paths\fP|\fB-p\fP"
Print CamiTK paths on the standard output and exit
.IP "\fB--camitk-dir\fP|\fB-d\fP"
.IP "\fB--camitk-dir\fP|\fB-d\fP|\fB--camitkDir\fP"
Print CAMITK_DIR (the installation directory) and exit
.IP "\fB--short-version\fP|\fB-s\fP"
.IP "\fB--short-version\fP|\fB-s\fP|\fB--shortVersion\fP"
Print CamiTK short version string
.IP "\fB--complete-version\fP|\fB-vv\fP"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment