Skip to content

Commit fdd0878

Browse files
committed
Remove -? to display help
It seems like `--help` and `-h` is good enough alternatives for getting the help display.
1 parent 20a8e09 commit fdd0878

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flags.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "util.h"
77

88
static const char* version_matches[] = {"-v", "--version", NULL};
9-
static const char* help_matches[] = {"-h", "-?", "--help", NULL};
9+
static const char* help_matches[] = {"-h", "--help", NULL};
1010

1111
/* Print off the current version of laco */
1212
static void handle_version(LacoState* laco, const char** arguments) {
@@ -20,8 +20,8 @@ static void handle_version(LacoState* laco, const char** arguments) {
2020
static void handle_help(LacoState* laco, const char** arguments) {
2121
puts("A better REPL for Lua.\n");
2222
puts("Usage: laco [options]\n");
23-
puts("-h | -? | --help \tPrint this help screen");
24-
puts("-v | --version \tPrint current version");
23+
puts("-h | --help \tPrint this help screen");
24+
puts("-v | --version \tPrint current version");
2525

2626
laco_kill(laco, 0, NULL);
2727
}

0 commit comments

Comments
 (0)