fix(cmd): fix -h on yay show and get. closes #856

This commit is contained in:
jguer 2021-08-21 15:32:37 +02:00
parent a1941b24bf
commit cedbcfbcda
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35

3
cmd.go
View file

@ -227,7 +227,8 @@ func handleQuery(ctx context.Context, cmdArgs *parser.Arguments, dbExecutor db.E
}
func handleHelp(ctx context.Context, cmdArgs *parser.Arguments) error {
if cmdArgs.Op == "Y" || cmdArgs.Op == "yay" {
switch cmdArgs.Op {
case "Y", "yay", "G", "getpkgbuild", "P", "show":
usage()
return nil
}