add short flags

This commit is contained in:
2020-03-26 22:00:16 -05:00
parent 917053f39c
commit e9771c4ca7
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,8 @@ var (
func init() {
fs := flag.NewFlagSet("toggle", flag.ExitOnError)
fs.String("selector", "all", "Set the selector")
selector := fs.String("selector", "all", "Set the selector")
fs.StringVar(selector, "s", "all", "Set the selector")
RegisterCommand("ls", Command{
Func: LsCmd,