fixed "help collections list" message (#1142)

* fixed "help collections list" message

* corrected usage of "as well"
This commit is contained in:
mmetc 2022-01-03 17:09:07 +01:00 committed by GitHub
parent f46f0ae553
commit cf175ab07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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{

View file

@ -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

View file

@ -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

View file

@ -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