Skip to content

Commit

Permalink
Merge pull request #25 from Grraahaam/fix/typo
Browse files Browse the repository at this point in the history
fix(doc): convert upper to lower case in help for consistency + typo
  • Loading branch information
dadav authored Apr 28, 2024
2 parents 5920552 + 2e1313b commit 950d3a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ The binary has the following options:
```sh
Flags:
-c, --chart-search-root string "directory to search recursively within for charts (default ".")"
-x, --dont-strip-helm-docs-prefix "Disable the removal of the helm-docs prefix (--)"
-x, --dont-strip-helm-docs-prefix "disable the removal of the helm-docs prefix (--)"
-d, --dry-run "don't actually create files just print to stdout passed"
-h, --help "help for helm-schema"
-s, --keep-full-comment "Keep the whole leading comment (default: cut at empty line)"
-l, --log-level string "Level of logs that should printed, one of (panic, fatal, error, warning, info, debug, trace) (default "info")"
-s, --keep-full-comment "keep the whole leading comment (default: cut at empty line)"
-l, --log-level string "level of logs that should printed, one of (panic, fatal, error, warning, info, debug, trace) (default "info")"
-n, --no-dependencies "don't analyze dependencies"
-o, --output-file string "jsonschema file path relative to each chart directory to which jsonschema will be written (default 'values.schema.json')"
-f, --value-files strings "filenames to check for chart values (default [values.yaml])"
-k, --skip-auto-generation strings "skip the auto generation for these fields (default [])"
-u, --uncomment "Consinder yaml which is commented out"
-u, --uncomment "consider yaml which is commented out"
-v, --version "version for helm-schema"
```

Expand Down
8 changes: 4 additions & 4 deletions cmd/helm-schema/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ func newCommand(run func(cmd *cobra.Command, args []string) error) (*cobra.Comma
}

logLevelUsage := fmt.Sprintf(
"Level of logs that should printed, one of (%s)",
"level of logs that should printed, one of (%s)",
strings.Join(possibleLogLevels(), ", "),
)
cmd.PersistentFlags().
StringP("chart-search-root", "c", ".", "directory to search recursively within for charts")
cmd.PersistentFlags().
BoolP("dry-run", "d", false, "don't actually create files just print to stdout passed")
cmd.PersistentFlags().
BoolP("keep-full-comment", "s", false, "Keep the whole leading comment (default: cut at empty line)")
BoolP("keep-full-comment", "s", false, "keep the whole leading comment (default: cut at empty line)")
cmd.PersistentFlags().
BoolP("uncomment", "u", false, "Consinder yaml which is commented out")
BoolP("uncomment", "u", false, "consider yaml which is commented out")
cmd.PersistentFlags().
BoolP("dont-strip-helm-docs-prefix", "x", false, "Disable the removal of the helm-docs prefix (--)")
BoolP("dont-strip-helm-docs-prefix", "x", false, "disable the removal of the helm-docs prefix (--)")
cmd.PersistentFlags().
BoolP("no-dependencies", "n", false, "don't analyze dependencies")
cmd.PersistentFlags().StringP("log-level", "l", "info", logLevelUsage)
Expand Down

0 comments on commit 950d3a5

Please sign in to comment.