Skip to content
Snippets Groups Projects
Commit a24a07ca authored by rswindell's avatar rswindell
Browse files

JSexec -v now dumps the version details and exits.

parent 2cf2e099
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,7 @@ void usage(FILE* fp)
"\t-o<filename> send console messages to file instead of stdout\n"
"\t-n send status messages to %s instead of stderr\n"
"\t-q send console messages to %s instead of stdout\n"
"\t-v display version details and exit\n"
"\t-x disable auto-termination on local abort signal\n"
"\t-l loop until intentionally terminated\n"
"\t-p wait for keypress (pause) on exit\n"
......@@ -877,6 +878,10 @@ int main(int argc, char **argv, char** environ)
if(*p==0) p=argv[++argn];
SAFECOPY(scfg.ctrl_dir,p);
break;
case 'v':
banner(statfp);
fprintf(statfp,"%s\n",(char *)JS_GetImplementationVersion());
bail(0);
#if defined(__unix__)
case 'd':
daemonize=TRUE;
......
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