csto: fix help message formatting

This commit is contained in:
Jeremy Baxter 2024-03-12 10:26:17 +13:00
parent 83f9f8690c
commit 1d59e1b7e7

20
csto.c
View file

@ -73,17 +73,17 @@ static void print_usage (const char *badoption) {
else else
lua_writestringerror("unrecognized option '%s'\n", badoption); lua_writestringerror("unrecognized option '%s'\n", badoption);
lua_writestringerror( lua_writestringerror(
"usage: %s [-e stat] [-l mod|g=mod] [-EivW] [script [args]]\n" "usage: %s [-EivW] [-e stat] [-l mod|g=mod] [script [args]]\n"
"available options are:\n" "available options are:\n"
" -e stat execute string 'stat'\n" " -e stat execute string 'stat'\n"
" -i enter interactive mode after executing 'script'\n" " -i enter interactive mode after executing 'script'\n"
" -l mod require library 'mod' into global 'mod'\n" " -l mod require library 'mod' into global 'mod'\n"
" -l g=mod require library 'mod' into global 'g'\n" " -l g=mod require library 'mod' into global 'g'\n"
" -v show version information\n" " -v show version information\n"
" -E ignore environment variables\n" " -E ignore environment variables\n"
" -W turn warnings on\n" " -W turn warnings on\n"
" -- stop handling options\n" " -- stop handling options\n"
" - stop handling options and execute stdin\n" " - stop handling options and execute stdin\n"
, ,
progname); progname);
} }