Skip to content

Commit e0b44e2

Browse files
committed
Add short hand for help command
1 parent 2b75e5e commit e0b44e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands.c

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

88
static const char* quit_matches[] = {"quit"};
9-
static const char* help_matches[] = {"help"};
9+
static const char* help_matches[] = {"help", "?"};
1010

1111
static void print_commands_help() {
1212
puts(" Commands available:\n");
13-
puts(" :quit \tExit laco");
14-
puts(" :help \tDisplay this list of commands");
13+
puts(" :quit \tExit laco");
14+
puts(" :help, :? \tDisplay this list of commands");
1515
}
1616

1717
static inline bool is_quit(const char* command) {

0 commit comments

Comments
 (0)