Skip to content
Snippets Groups Projects
Commit dc6a44ec authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

provide version command

parent 95097af7
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,12 @@ int main(int argc, char const *const *argv)
if (!argv[1]) {
PROG = "66" ;
log_usage(usage_66) ;
} else if (!strcmp(argv[1], "version")) {
PROG = "version" ;
log_info(SS_VERSION) ;
return 0 ;
}
int r, n = 0, i = 0 ;
......@@ -271,29 +277,15 @@ int main(int argc, char const *const *argv)
nargv[n++] = PROG ;
func = &ssexec_tree_wrapper ;
auto_strings(opts, main, OPTS_TREE) ;
} else if (!strcmp(argv[1], "inresolve")) {
PROG = "inresolve" ;
nargv[n++] = PROG ;
info.prog = PROG ;
info.help = help_inresolve ;
info.usage = usage_inresolve ;
func = &ssexec_inresolve ;
auto_strings(opts, main) ;
auto_strings(opts, main, OPTS_INRESOLVE) ;
} else if (!strcmp(argv[1], "service")) {
} else if (!strcmp(argv[1], "instate")) {
PROG = "instate" ;
PROG = "service" ;
nargv[n++] = PROG ;
info.prog = PROG ;
info.help = help_instate ;
info.usage = usage_instate ;
func = &ssexec_instate ;
func = &ssexec_service_wrapper ;
auto_strings(opts, main, OPTS_INSTATE) ;
auto_strings(opts, main) ;
} else if (!strcmp(argv[1], "intree")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment