Skip to content

Commit

Permalink
Make yaml command flags normal flags
Browse files Browse the repository at this point in the history
Replace `PersistentFlags()` with `Flags()` for `yaml` command.
  • Loading branch information
HeavyWombat committed Mar 18, 2021
1 parent df24bba commit 2ea4d9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cmd/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func init() {
yamlCmd.Flags().SortFlags = false
yamlCmd.PersistentFlags().SortFlags = false

yamlCmd.PersistentFlags().BoolVarP(&yamlCmdSettings.plainMode, "plain", "p", false, "output in plain style without any highlighting")
yamlCmd.PersistentFlags().BoolVarP(&yamlCmdSettings.restructure, "restructure", "r", false, "restructure map keys in reasonable order")
yamlCmd.PersistentFlags().BoolVarP(&yamlCmdSettings.omitIndentHelper, "omit-indent-helper", "O", false, "omit indent helper lines in highlighted output")
yamlCmd.PersistentFlags().BoolVarP(&yamlCmdSettings.inplace, "in-place", "i", false, "overwrite input file with output of this command")
yamlCmd.Flags().BoolVarP(&yamlCmdSettings.plainMode, "plain", "p", false, "output in plain style without any highlighting")
yamlCmd.Flags().BoolVarP(&yamlCmdSettings.restructure, "restructure", "r", false, "restructure map keys in reasonable order")
yamlCmd.Flags().BoolVarP(&yamlCmdSettings.omitIndentHelper, "omit-indent-helper", "O", false, "omit indent helper lines in highlighted output")
yamlCmd.Flags().BoolVarP(&yamlCmdSettings.inplace, "in-place", "i", false, "overwrite input file with output of this command")
}

0 comments on commit 2ea4d9b

Please sign in to comment.