Skip to content

Commit ad0f060

Browse files
committed
Merge branch 'short-hand-command'
2 parents 2b75e5e + 60d5015 commit ad0f060

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
#include "util.h"
77

8-
static const char* quit_matches[] = {"quit"};
9-
static const char* help_matches[] = {"help"};
8+
static const char* quit_matches[] = {"quit", "q"};
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, :q \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)