flags : Help outputs a positional spec as well
This commit is contained in:
parent
a976dfd753
commit
1fed129838
2 changed files with 8 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ func parseArgs(args []string) options {
|
|||
}
|
||||
opts.Key.Val = args[i+1]
|
||||
case arg == opts.Help.Long || arg == opts.Help.Short:
|
||||
flags.Help("tag", opts)
|
||||
flags.Help("sort", opts)
|
||||
return opts
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue