From 090016a7c289f98373284c47c7d6531d30eecf97 Mon Sep 17 00:00:00 2001 From: pouillot Date: Sat, 16 Mar 2013 11:43:51 +0000 Subject: [PATCH] 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 --- src/libs/tgf/application.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/libs/tgf/application.cpp b/src/libs/tgf/application.cpp index 8a8c400d0..7dd539a6c 100644 --- a/src/libs/tgf/application.cpp +++ b/src/libs/tgf/application.cpp @@ -88,25 +88,25 @@ void GfApplication::initialize(bool bLoggingEnabled, int argc, char **argv) GfLogInfo("\n"); // Register the command line options (to be parsed). - registerOption("h", "help", /* nHasValue = */ false); - registerOption("v", "version", /* nHasValue = */ false); - registerOption("l", "localdir", /* nHasValue = */ true); - registerOption("L", "libdir", /* nHasValue = */ true); - registerOption("B", "bindir", /* nHasValue = */ true); - registerOption("D", "datadir", /* nHasValue = */ true); - registerOption("e", "tracelevel", /* nHasValue = */ true); - registerOption("t", "tracestream", /* nHasValue = */ true); - registerOption("n", "norandom", /* nHasValue = */ false); + registerOption("h", "help", /* nHasValue = */ false); + registerOption("v", "version", /* nHasValue = */ false); + registerOption("lc", "localdir", /* nHasValue = */ true); + registerOption("ld", "libdir", /* nHasValue = */ true); + registerOption("bd", "bindir", /* nHasValue = */ true); + registerOption("dd", "datadir", /* nHasValue = */ true); + registerOption("tl", "tracelevel", /* nHasValue = */ true); + registerOption("ts", "tracestream", /* nHasValue = */ true); + registerOption("nr", "norandom", /* nHasValue = */ false); // Help about the command line options. - addOptionsHelpSyntaxLine("[-l|--localdir ] [-L|--libdir ]"); - addOptionsHelpSyntaxLine("[-B|--bindir ] [-D|--datadir ]"); -#ifdef TRACE_OUT - addOptionsHelpSyntaxLine("[-e|--tracelevel ]" - " [-t|--tracestream stdout|stderr|]"); -#endif addOptionsHelpSyntaxLine("[-v|--version]"); - addOptionsHelpSyntaxLine("[-n|--norandom]"); + addOptionsHelpSyntaxLine("[-lc|--localdir ] [-ld|--libdir ]"); + addOptionsHelpSyntaxLine("[-bd|--bindir ] [-dd|--datadir ]"); +#ifdef TRACE_OUT + addOptionsHelpSyntaxLine("[-tl|--tracelevel ]" + " [-ts|--tracestream stdout|stderr|]"); +#endif + addOptionsHelpSyntaxLine("[-nr|--norandom]"); addOptionsHelpExplainLine ("- locadir : Root dir of the tree where user settings files are stored");