-h → --help
This commit is contained in:
parent
9928c7176d
commit
78793ca700
@ -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; }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user