From aa46d49b8952a69e37cdf10b61a0ef83c49cc1de Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 10 Jan 2024 11:03:40 -0700 Subject: ? as an alias for "help" --- command.go | 2 ++ 1 file changed, 2 insertions(+) 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{ -- cgit v1.2.3