mirror of
https://github.com/cheat/cheat.git
synced 2024-12-22 04:35:06 +01:00
feat: support -t
shorthand
Make `cheat -t <tag>` function as a shorthand for `cheat -l -t <tag>`.
This commit is contained in:
parent
cb0243e7fc
commit
c2c479b36c
@ -185,6 +185,9 @@ func main() {
|
||||
case opts["<cheatsheet>"] != nil:
|
||||
cmd = cmdView
|
||||
|
||||
case opts["--tag"] != nil && opts["--tag"].(string) != "":
|
||||
cmd = cmdList
|
||||
|
||||
default:
|
||||
fmt.Println(usage())
|
||||
os.Exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user