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