Skip to content

Commit

Permalink
chore(influx): mark hidden flags that are deprecated as deprecated wi…
Browse files Browse the repository at this point in the history
…th help msg

closes: #18639
  • Loading branch information
jsteenb2 committed Jun 23, 2020
1 parent 4827398 commit 2cb6da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/influx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (b *cmdConfigBuilder) cmdDelete() *cobra.Command {

b.registerPrintFlags(cmd)
cmd.Flags().StringVarP(&b.name, "name", "n", "", "The config name (required)")
cmd.Flags().MarkHidden("name")
cmd.Flags().MarkDeprecated("name", "provide the name as an arg; example: inflxu config rm $CFG_NAME")

return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/influx/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ func (b *cmdPkgBuilder) registerPkgFileFlags(cmd *cobra.Command) {
cmd.Flags().BoolVarP(&b.recurse, "recurse", "R", false, "Process the directory used in -f, --file recursively. Useful when you want to manage related templates organized within the same directory.")

cmd.Flags().StringSliceVarP(&b.urls, "template-url", "u", nil, "URL to template file")
cmd.Flags().MarkHidden("template-url")
cmd.Flags().MarkDeprecated("template-url", "use the --file flag; example: --file $URL_TO_TEMPLATE")

cmd.Flags().StringVarP(&b.encoding, "encoding", "e", "", "Encoding for the input stream. If a file is provided will gather encoding type from file extension. If extension provided will override.")
cmd.MarkFlagFilename("encoding", "yaml", "yml", "json", "jsonnet")
Expand Down

0 comments on commit 2cb6da8

Please sign in to comment.