Re #803 Less conflict-prone GfApplication command line switches
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5323 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 827481b3c812f04b12b685d3b8d531f0f6c4784c Former-commit-id: 451a9c606306d2908649c941f4e1fa1ad35404e9
This commit is contained in:
parent
1a05db2e08
commit
090016a7c2
1 changed files with 16 additions and 16 deletions
|
@ -88,25 +88,25 @@ void GfApplication::initialize(bool bLoggingEnabled, int argc, char **argv)
|
||||||
GfLogInfo("\n");
|
GfLogInfo("\n");
|
||||||
|
|
||||||
// Register the command line options (to be parsed).
|
// Register the command line options (to be parsed).
|
||||||
registerOption("h", "help", /* nHasValue = */ false);
|
registerOption("h", "help", /* nHasValue = */ false);
|
||||||
registerOption("v", "version", /* nHasValue = */ false);
|
registerOption("v", "version", /* nHasValue = */ false);
|
||||||
registerOption("l", "localdir", /* nHasValue = */ true);
|
registerOption("lc", "localdir", /* nHasValue = */ true);
|
||||||
registerOption("L", "libdir", /* nHasValue = */ true);
|
registerOption("ld", "libdir", /* nHasValue = */ true);
|
||||||
registerOption("B", "bindir", /* nHasValue = */ true);
|
registerOption("bd", "bindir", /* nHasValue = */ true);
|
||||||
registerOption("D", "datadir", /* nHasValue = */ true);
|
registerOption("dd", "datadir", /* nHasValue = */ true);
|
||||||
registerOption("e", "tracelevel", /* nHasValue = */ true);
|
registerOption("tl", "tracelevel", /* nHasValue = */ true);
|
||||||
registerOption("t", "tracestream", /* nHasValue = */ true);
|
registerOption("ts", "tracestream", /* nHasValue = */ true);
|
||||||
registerOption("n", "norandom", /* nHasValue = */ false);
|
registerOption("nr", "norandom", /* nHasValue = */ false);
|
||||||
|
|
||||||
// Help about the command line options.
|
// Help about the command line options.
|
||||||
addOptionsHelpSyntaxLine("[-l|--localdir <dir path>] [-L|--libdir <dir path>]");
|
|
||||||
addOptionsHelpSyntaxLine("[-B|--bindir <dir path>] [-D|--datadir <dir path>]");
|
|
||||||
#ifdef TRACE_OUT
|
|
||||||
addOptionsHelpSyntaxLine("[-e|--tracelevel <integer>]"
|
|
||||||
" [-t|--tracestream stdout|stderr|<file name>]");
|
|
||||||
#endif
|
|
||||||
addOptionsHelpSyntaxLine("[-v|--version]");
|
addOptionsHelpSyntaxLine("[-v|--version]");
|
||||||
addOptionsHelpSyntaxLine("[-n|--norandom]");
|
addOptionsHelpSyntaxLine("[-lc|--localdir <dir path>] [-ld|--libdir <dir path>]");
|
||||||
|
addOptionsHelpSyntaxLine("[-bd|--bindir <dir path>] [-dd|--datadir <dir path>]");
|
||||||
|
#ifdef TRACE_OUT
|
||||||
|
addOptionsHelpSyntaxLine("[-tl|--tracelevel <integer>]"
|
||||||
|
" [-ts|--tracestream stdout|stderr|<file name>]");
|
||||||
|
#endif
|
||||||
|
addOptionsHelpSyntaxLine("[-nr|--norandom]");
|
||||||
|
|
||||||
addOptionsHelpExplainLine
|
addOptionsHelpExplainLine
|
||||||
("- locadir : Root dir of the tree where user settings files are stored");
|
("- locadir : Root dir of the tree where user settings files are stored");
|
||||||
|
|
Loading…
Reference in a new issue