summaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-10 11:03:40 -0700
committertjp <tjp@ctrl-c.club>2024-01-10 11:03:40 -0700
commitaa46d49b8952a69e37cdf10b61a0ef83c49cc1de (patch)
tree086141279b0474fb9de13e8a3f4f355db7be3a9f /command.go
parenta69742c81c7d46a71adce5d39da28a5b839d5716 (diff)
? as an alias for "help"
Diffstat (limited to 'command.go')
-rw-r--r--command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.go b/command.go
index 734aa6e..d994866 100644
--- a/command.go
+++ b/command.go
@@ -128,6 +128,8 @@ func ParseCommand(line string) (*Command, error) {
Name: "pipe",
Args: []string{strings.TrimSpace(line[1:])},
}, nil
+ case '?':
+ return &Command{Name: "help", Args: []string{""}}, nil
case 's':
if strings.HasPrefix("save", cmd) {
return &Command{