Skip to content

Commit

Permalink
Fix an extra space in help output (#1569)
Browse files Browse the repository at this point in the history
Minor fix

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Feb 6, 2025
1 parent f7d057e commit 98f5252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func init() {
_ = scanCmd.Flags().MarkHidden("inventory-domainlist")

// bundles, packs & incognito mode
_ = scanCmd.Flags().Bool("incognito", false, "Run in incognito mode. Do not report scan results to Mondoo Platform.")
_ = scanCmd.Flags().Bool("incognito", false, "Run in incognito mode. Do not report scan results to Mondoo Platform.")
_ = scanCmd.Flags().StringSlice("policy", nil, "Lists policies to execute. This requires --policy-bundle. You can pass multiple policies using --policy POLICY.")
_ = scanCmd.Flags().StringSliceP("policy-bundle", "f", nil, "Path to local policy file")
// flag completion command
Expand Down
2 changes: 1 addition & 1 deletion test/cli/testdata/cnspec_scan.ct
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Flags:
--asset-name string User-override for the asset name
--detect-cicd Try to detect CI/CD environments. If detected, set the asset category to 'cicd'. (default true)
-h, --help help for scan
--incognito Run in incognito mode. Do not report scan results to Mondoo Platform.
--incognito Run in incognito mode. Do not report scan results to Mondoo Platform.
--inventory-file string Set the path to the inventory file.
--inventory-format-ansible Set the inventory format to Ansible.
--inventory-format-domainlist Set the inventory format to domain list.
Expand Down

0 comments on commit 98f5252

Please sign in to comment.