Skip to content

Commit 60d5015

Browse files
committed
Add short hand for quit command
1 parent e0b44e2 commit 60d5015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands.c

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

66
#include "util.h"
77

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

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

0 commit comments

Comments
 (0)