fixed "help collections list" message (#1142)
* fixed "help collections list" message * corrected usage of "as well"
This commit is contained in:
parent
f46f0ae553
commit
cf175ab07e
5 changed files with 7 additions and 7 deletions
|
@ -136,8 +136,8 @@ func NewCollectionsCmd() *cobra.Command {
|
|||
|
||||
var cmdCollectionsList = &cobra.Command{
|
||||
Use: "list collection [-a]",
|
||||
Short: "List all collections or given one",
|
||||
Long: `List all collections or given one`,
|
||||
Short: "List all collections",
|
||||
Long: `List all collections`,
|
||||
Example: `cscli collections list`,
|
||||
Args: cobra.ExactArgs(0),
|
||||
DisableAutoGenTag: true,
|
||||
|
@ -145,7 +145,7 @@ func NewCollectionsCmd() *cobra.Command {
|
|||
ListItem(cwhub.COLLECTIONS, args, false, true)
|
||||
},
|
||||
}
|
||||
cmdCollectionsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items")
|
||||
cmdCollectionsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
|
||||
cmdCollections.AddCommand(cmdCollectionsList)
|
||||
|
||||
return cmdCollections
|
||||
|
|
|
@ -66,7 +66,7 @@ cscli hub update # Download list of available configurations from the hub
|
|||
ListItem(cwhub.PARSERS_OVFLW, args, true, false)
|
||||
},
|
||||
}
|
||||
cmdHubList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items")
|
||||
cmdHubList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
|
||||
cmdHub.AddCommand(cmdHubList)
|
||||
|
||||
var cmdHubUpdate = &cobra.Command{
|
||||
|
|
|
@ -135,7 +135,7 @@ cscli parser list crowdsecurity/xxx`,
|
|||
ListItem(cwhub.PARSERS, args, false, true)
|
||||
},
|
||||
}
|
||||
cmdParsersList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items")
|
||||
cmdParsersList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
|
||||
cmdParsers.AddCommand(cmdParsersList)
|
||||
|
||||
return cmdParsers
|
||||
|
|
|
@ -133,7 +133,7 @@ cscli postoverflows list crowdsecurity/xxx`,
|
|||
ListItem(cwhub.PARSERS_OVFLW, args, false, true)
|
||||
},
|
||||
}
|
||||
cmdPostOverflowsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items")
|
||||
cmdPostOverflowsList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
|
||||
cmdPostOverflows.AddCommand(cmdPostOverflowsList)
|
||||
|
||||
return cmdPostOverflows
|
||||
|
|
|
@ -135,7 +135,7 @@ cscli scenarios list crowdsecurity/xxx`,
|
|||
ListItem(cwhub.SCENARIOS, args, false, true)
|
||||
},
|
||||
}
|
||||
cmdScenariosList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List as well disabled items")
|
||||
cmdScenariosList.PersistentFlags().BoolVarP(&all, "all", "a", false, "List disabled items as well")
|
||||
cmdScenarios.AddCommand(cmdScenariosList)
|
||||
|
||||
return cmdScenarios
|
||||
|
|
Loading…
Reference in a new issue