Add -:version to runtime options
This commit is contained in:
parent
975ad5de51
commit
2bf14c6e35
4
c/main.c
4
c/main.c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue