-h → --help

This commit is contained in:
dzaima 2022-12-26 20:33:33 +02:00
parent 9928c7176d
commit 78793ca700

View File

@ -753,6 +753,7 @@ int main(int argc, char* argv[]) {
i++; i++;
if (carg[1]=='-') { if (carg[1]=='-') {
if (!strcmp(carg, "--help")) { if (!strcmp(carg, "--help")) {
print_help:
printf( printf(
"Usage: %s [options] [file.bqn [arguments]]\n" "Usage: %s [options] [file.bqn [arguments]]\n"
"Options:\n" "Options:\n"
@ -817,6 +818,7 @@ int main(int argc, char* argv[]) {
break; break;
} }
#endif #endif
case 'h': goto print_help;
case 'r': { startREPL=true; break; } case 'r': { startREPL=true; break; }
case 's': { startREPL=true; silentREPL=true; break; } case 's': { startREPL=true; silentREPL=true; break; }
} }