diff options
| author | tjp <tjp@ctrl-c.club> | 2024-01-10 11:03:40 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-01-10 11:03:40 -0700 |
| commit | aa46d49b8952a69e37cdf10b61a0ef83c49cc1de (patch) | |
| tree | 086141279b0474fb9de13e8a3f4f355db7be3a9f | |
| parent | a69742c81c7d46a71adce5d39da28a5b839d5716 (diff) | |
? as an alias for "help"
| -rw-r--r-- | command.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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{ |
