Add -:version to runtime options

This commit is contained in:
Lassi Kortela 2019-10-14 19:18:57 +03:00
parent 975ad5de51
commit 2bf14c6e35
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,8 @@ static const char runtime_usage_message[] =
"\n" "\n"
"search set module search path" "search set module search path"
"\n" "\n"
"version show version information"
"\n"
"help show this help" "help show this help"
"\n"; "\n";
@ -330,6 +332,8 @@ static void runtime_option(const char *name, const char *value)
} else if (!strcmp("search", name)) { } else if (!strcmp("search", name)) {
if (!value) if (!value)
runtime_usage(); runtime_usage();
} else if (!strcmp("version", name)) {
versionflag = 1;
} else if (!strcmp("help", name)) { } else if (!strcmp("help", name)) {
generic_runtime_usage(stdout, 0); generic_runtime_usage(stdout, 0);
} else { } else {