diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-27 21:16:31 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-27 21:16:31 +0000 |
commit | 04d7c481af16c5f2247e03fd0f56b027f2b2793c (patch) | |
tree | 89715b0786cc7aedf357e127d17b43f4d065694c /src/main/CommandLine.c | |
parent | cd38deee5bf40ec15791cdf88eaa832951dcdfbd (diff) |
Added version number to <cactus_code> -v
option
git-svn-id: http://svn.cactuscode.org/flesh/trunk@798 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r-- | src/main/CommandLine.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c index 80418cdc..6c46c035 100644 --- a/src/main/CommandLine.c +++ b/src/main/CommandLine.c @@ -195,9 +195,14 @@ void CCTKi_CommandLineVersion(void) int argc; char **argv; + const char *version=NULL; + argc = CCTK_GetCommandLine(&argv); - printf("%s, compiled on %s at %s\n", argv[0], compileDate(), compileTime()); + version = (const char *)CCTK_FullVersion(); + + printf("%s: Version %s. Compiled on %s at %s\n", argv[0], version, + compileDate(), compileTime()); exit(1); } |