From cf175ab07eb770ec33226d9e7495bbc151727cc5 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 3 Jan 2022 17:09:07 +0100 Subject: [PATCH] fixed "help collections list" message (#1142) * fixed "help collections list" message * corrected usage of "as well" --- cmd/crowdsec-cli/collections.go | 6 +++--- cmd/crowdsec-cli/hub.go | 2 +- cmd/crowdsec-cli/parsers.go | 2 +- cmd/crowdsec-cli/postoverflows.go | 2 +- cmd/crowdsec-cli/scenarios.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/crowdsec-cli/collections.go b/cmd/crowdsec-cli/collections.go index 22963120c..002c84c47 100644 --- a/cmd/crowdsec-cli/collections.go +++ b/cmd/crowdsec-cli/collections.go @@ -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 diff --git a/cmd/crowdsec-cli/hub.go b/cmd/crowdsec-cli/hub.go index 21bcfd7f6..7f08a5690 100644 --- a/cmd/crowdsec-cli/hub.go +++ b/cmd/crowdsec-cli/hub.go @@ -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{ diff --git a/cmd/crowdsec-cli/parsers.go b/cmd/crowdsec-cli/parsers.go index 2235bd8a1..28740d79f 100644 --- a/cmd/crowdsec-cli/parsers.go +++ b/cmd/crowdsec-cli/parsers.go @@ -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 diff --git a/cmd/crowdsec-cli/postoverflows.go b/cmd/crowdsec-cli/postoverflows.go index 8c38fe880..8b7a89f8e 100644 --- a/cmd/crowdsec-cli/postoverflows.go +++ b/cmd/crowdsec-cli/postoverflows.go @@ -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 diff --git a/cmd/crowdsec-cli/scenarios.go b/cmd/crowdsec-cli/scenarios.go index 059c01f99..51b7ab796 100644 --- a/cmd/crowdsec-cli/scenarios.go +++ b/cmd/crowdsec-cli/scenarios.go @@ -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