Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wording in our help #4413

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/cnquery/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
func init() {
rootCmd.AddCommand(RunCmd)

RunCmd.Flags().StringP("command", "c", "", "MQL query to executed in the shell")
RunCmd.Flags().StringP("command", "c", "", "MQL query to execute in the shell")
RunCmd.Flags().Bool("parse", false, "Parse the query and return the logical structure")
RunCmd.Flags().Bool("ast", false, "Parse the query and return the abstract syntax tree (AST)")
RunCmd.Flags().Bool("info", false, "Parse the query and provide information about it")
Expand Down
2 changes: 1 addition & 1 deletion apps/cnquery/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
func init() {
rootCmd.AddCommand(shellCmd)

shellCmd.Flags().StringP("command", "c", "", "MQL query to executed in the shell")
shellCmd.Flags().StringP("command", "c", "", "MQL query to execute in the shell")
shellCmd.Flags().String("platform-id", "", "Select a specific target asset by providing its platform ID")
shellCmd.Flags().StringToString("annotations", nil, "Specify annotations for this run")
_ = shellCmd.Flags().MarkHidden("annotations")
Expand Down
6 changes: 3 additions & 3 deletions providers/gitlab/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ var Config = plugin.Provider{
Type: plugin.FlagType_String,
Option: plugin.FlagOption_Required,
Default: "",
Desc: "a GitLab group to scan",
Desc: "GitLab group to scan",
},
{
Long: "project",
Type: plugin.FlagType_String,
Default: "",
Desc: "a GitLab project to scan",
Desc: "GitLab project to scan",
},
{
Long: "url",
Type: plugin.FlagType_String,
Default: "",
Desc: "custom GitLab base url",
Desc: "Custom GitLab base url",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion test/commands/testdata/cnquery_run.ct
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Available Commands:

Flags:
--ast Parse the query and return the abstract syntax tree (AST)
-c, --command string MQL query to executed in the shell
-c, --command string MQL query to execute in the shell
-h, --help help for run
--info Parse the query and provide information about it
-j, --json Run the query and return the object in a JSON structure
Expand Down
Loading