diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-08-26 15:34:20 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-08-26 15:34:20 +0000 |
commit | 5e90d4682484a0b9cbc232d0005bcda3895f6c9f (patch) | |
tree | d14c7ec57f48fd431663326f9c7b55900846aa47 /src/main/CommandLine.c | |
parent | 9a643dc37c6334abd06d70688d2e1494c435bbf2 (diff) |
New parameter stuff.
Now a non-active thorn's extensions to parameters shouldn't be valid,
range checking is now done, even for strings, which must conform to
a regular expression.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@859 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r-- | src/main/CommandLine.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c index 7cd0d45b..273bd344 100644 --- a/src/main/CommandLine.c +++ b/src/main/CommandLine.c @@ -14,9 +14,11 @@ #include "CommandLine.h" #include "cctk_Flesh.h" #include "cGH.h" + #include "cctk_Comm.h" #include "cctk_WarnLevel.h" #include "cctk_Bindings.h" +#include "cctk_Misc.h" /* FIXME. This shouldn't be here !*/ #include "thornlist.h" @@ -75,7 +77,23 @@ void CCTKi_CommandLineDescribeAllParameters(void) void CCTKi_CommandLineDescribeParameter(const char *optarg) { + char *thorn; + char *param; + + /* CCTKi_BindingsParameterHelp(optarg,"%s",stdout); + */ + + Util_SplitString(þ, ¶m, optarg, "::"); + + ParameterPrintDescription(param, + thorn, /*const char *thorn,*/ + "..%s..%s\n",/* const char *format,*/ + stdout); + + free(thorn); + free(param); + exit(1); } |