summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-06-23 04:21:47 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-06-23 04:21:47 +0000
commitd3ab514b66742004301913e306f70f8e20727af7 (patch)
tree4a693f57ef5bdb2da809c4cc907a7c9b74592f15 /src/main
parenta5554988d7b607ddb66ac499f3f9ceb74a35f31d (diff)
Use two dashes instead of a single dash when describing command line
option. This is now the preferred format, as per the recent discussion on the developers' mailing list. Comment out a leftover non-commented part of the non-exising "x" option. Reformat the command line descriptions slightly. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4330 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main')
-rw-r--r--src/main/CommandLine.c45
1 files changed, 22 insertions, 23 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c
index bfad972d..d2829cd4 100644
--- a/src/main/CommandLine.c
+++ b/src/main/CommandLine.c
@@ -69,7 +69,7 @@ int cctki_onlyprintschedule = 0;
#define CACTUS_COMMANDLINE_OPTIONS \
"[-h] [-O] [-o paramname] [-L n] [-W n] [-E n] [-r[o|e|oe|eo]] " \
"[-b [no|line|full]] " \
- "[-S] [-T] [-t name] [-parameter-level <level>] [-v] " \
+ "[-S] [-T] [-t name] [--parameter-level <level>] [-v] " \
"<parameter_file_name>"
@@ -588,30 +588,29 @@ void CCTKi_CommandLineHelp (void)
* places you have to update if you add a new command-line option.
*/
const char *commandline_options_description =
- "-h, -help : gets this help.\n"
- "-O[v], -describe-all-parameters : describes all the parameters.\n"
- " v makes this verbose, i.e. it\n"
- " gives a verbose description of\n"
- " all parameters\n"
- "-o, -describe-parameter <paramname> : describe the given parameter.\n"
- " pretending to be on nprocs processors, \n"
- " or 1 if not given.\n"
- "-L, -logging-level <n> : Sets the logging level to n.\n"
- "-W, -warning-level <n> : Sets the warning level to n.\n"
- "-E, -error-level <n> : Sets the error level to n.\n"
- "-r, -redirect [o|e|oe|eo] : Redirects standard output and/or standard\n"
- " error to files.\n"
- "-b, -buffering [no|line|full] : Set stdout buffering mode.\n"
- "-S, -print-schedule : Print the schedule tree, then exit.\n"
- "-T, -list-thorns : Lists the compiled-in thorns.\n"
- "-t, -test-thorn-compiled <name> : Tests for the presence of thorn <name>.\n"
- " -parameter-level <level> : Sets the amount of parameter checking, \n"
- " level can be strict, normal, relaxed.\n"
- "-v, -version : Prints the version.\n"
- "-i, -ignore-next : Ignores the next argument.\n";
+ "-h, --help : gets this help.\n"
+ "-O[v], --describe-all-parameters : describes all the parameters.\n"
+ " v makes this verbose, i.e., it gives\n"
+ " a verbose description of all parameters.\n"
+ "-o, --describe-parameter <paramname> : describe the given parameter.\n"
+ "-L, --logging-level <n> : Sets the logging level to n.\n"
+ "-W, --warning-level <n> : Sets the warning level to n.\n"
+ "-E, --error-level <n> : Sets the error level to n.\n"
+ "-r, --redirect [o|e|oe|eo] : Redirects standard output and/or\n"
+ " standard error to files.\n"
+ "-b, --buffering [no|line|full] : Set stdout buffering mode.\n"
+ "-S, --print-schedule : Print the schedule tree, then exit.\n"
+ "-T, --list-thorns : Lists the compiled-in thorns.\n"
+ "-t, --test-thorn-compiled <name> : Tests for the presence of thorn <name>.\n"
+ " --parameter-level <level> : Sets the amount of parameter checking, \n"
+ " level can be strict, normal, relaxed.\n"
+ "-v, --version : Prints the version.\n"
+ "-i, --ignore-next : Ignores the next argument.\n";
/* test-parameter option to be added back when implemented
- "-x, -test-parameters [nprocs] : does a quick test of the parameter file\n"
+ "-x, --test-parameters [nprocs] : does a quick test of the parameter file\n"
+ " pretending to be on nprocs processors,\n"
+ " or 1 if not given.\n"
*/
if (CCTK_MyProc (NULL) == 0)