diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-18 10:02:12 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-18 10:02:12 +0000 |
commit | 4d4f441b39716065ba4d993acb2ff2c0f4da27ab (patch) | |
tree | fec860f0270b08156deaa9a23c0534acd210125b /src/main/ProcessCommandLine.c | |
parent | 182294aefb58d7cbca819e8b77c0893709b9dc36 (diff) |
Some bugfixes and renaming of parameter stuff.
Some more stuff for ActiveThorns.
Now the -O and -o commandline options do something sensible. You can also
pass an optional parameter 'v' to -O which makes it very verbose.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1054 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ProcessCommandLine.c')
-rw-r--r-- | src/main/ProcessCommandLine.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/ProcessCommandLine.c b/src/main/ProcessCommandLine.c index 7f33c3c3..31b405e7 100644 --- a/src/main/ProcessCommandLine.c +++ b/src/main/ProcessCommandLine.c @@ -53,19 +53,19 @@ int ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigData) struct option long_options[] = { {"help", no_argument, NULL, 'h'}, - {"describe-all-parameters", no_argument, NULL, 'O'}, - {"describe-parameter", required_argument, NULL, 'o'}, - {"test-parameters", optional_argument, NULL, 'x'}, - {"warning-level", required_argument, NULL, 'W'}, - {"error-level", required_argument, NULL, 'E'}, - {"redirect-stdout", no_argument, NULL, 'r'}, - {"list-thorns", no_argument, NULL, 'T'}, - {"test-thorn-compiled", required_argument, NULL, 't'}, + {"describe-all-parameters", optional_argument, NULL, 'O'}, + {"describe-parameter", required_argument, NULL, 'o'}, + {"test-parameters", optional_argument, NULL, 'x'}, + {"warning-level", required_argument, NULL, 'W'}, + {"error-level", required_argument, NULL, 'E'}, + {"redirect-stdout", no_argument, NULL, 'r'}, + {"list-thorns", no_argument, NULL, 'T'}, + {"test-thorn-compiled", required_argument, NULL, 't'}, {"version", no_argument, NULL, 'v'}, {0, 0, 0, 0} }; - c = getopt_long_only (argc, argv, "hOo:x::W:E:rTt:v", + c = getopt_long_only (argc, argv, "hO::o:x::W:E:rTt:v", long_options, &option_index); if (c == -1) break; @@ -73,7 +73,7 @@ int ProcessCommandLine(int *inargc, char ***inargv, tFleshConfig *ConfigData) switch (c) { case 't': CCTKi_CommandLineTestThornCompiled(optarg); break; - case 'O': CCTKi_CommandLineDescribeAllParameters(); break; + case 'O': CCTKi_CommandLineDescribeAllParameters(optarg); break; case 'o': CCTKi_CommandLineDescribeParameter(optarg); break; case 'x': CCTKi_CommandLineTestParameters(optarg); break; case 'W': CCTKi_CommandLineWarningLevel(optarg); break; |