Skip to content
Snippets Groups Projects
Commit d33e6a44 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Make it 'jsexec -r' (run) instead of 'jsexec -I'

Also, it's not technically an option, so remove from the option list.
parent 3c005e5b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1257 passed
...@@ -105,7 +105,7 @@ void usage() ...@@ -105,7 +105,7 @@ void usage()
{ {
banner(stdout); banner(stdout);
fprintf(stdout, "\nusage: " PROG_NAME_LC " [-opts] [[path/]module[.js] or -Ijs-expression] [args]\n" fprintf(stdout, "\nusage: " PROG_NAME_LC " [-opts] [[path/]module[.js] or -r js-expression] [args]\n"
"\navailable opts:\n\n" "\navailable opts:\n\n"
#ifdef JSDOOR #ifdef JSDOOR
" -c<ctrl_dir> specify path to CTRL directory\n" " -c<ctrl_dir> specify path to CTRL directory\n"
...@@ -129,7 +129,6 @@ void usage() ...@@ -129,7 +129,6 @@ void usage()
" -L<level> set log level (default=%u)\n" " -L<level> set log level (default=%u)\n"
" -E<level> set error log level threshold (default=%u)\n" " -E<level> set error log level threshold (default=%u)\n"
" -i<path_list> set load() comma-sep search path list (default=\"%s\")\n" " -i<path_list> set load() comma-sep search path list (default=\"%s\")\n"
" -I<expression> interpret and execute specified JavaScript expression\n"
" -f use non-buffered stream for console messages\n" " -f use non-buffered stream for console messages\n"
" -a append instead of overwriting message output files\n" " -a append instead of overwriting message output files\n"
" -A send all message to stdout\n" " -A send all message to stdout\n"
...@@ -1229,7 +1228,7 @@ int main(int argc, char **argv, char** env) ...@@ -1229,7 +1228,7 @@ int main(int argc, char **argv, char** env)
case 'E': case 'E':
case 'g': case 'g':
case 'i': case 'i':
case 'I': case 'r':
case 'L': case 'L':
case 'm': case 'm':
case 'o': case 'o':
...@@ -1268,7 +1267,7 @@ int main(int argc, char **argv, char** env) ...@@ -1268,7 +1267,7 @@ int main(int argc, char **argv, char** env)
case 'i': case 'i':
load_path_list=p; load_path_list=p;
break; break;
case 'I': case 'r':
js_buf = p; js_buf = p;
break; break;
case 'L': case 'L':
......
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