Skip to content

Commit

Permalink
chore(cmd): Explicitly add version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 17, 2023
1 parent 2e379fd commit 9d7e322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewCommand(version, commit string) *cobra.Command {
cmd.Flags().IntVarP(&conf.Indent, "indent", "I", conf.Indent, "Override output indentation")
cmd.Flags().BoolVarP(&conf.Fail, "fail", "f", conf.Fail, `Exit with an error if a template variable is not set`)
cmd.Flags().BoolVarP(&conf.Strip, "strip", "s", conf.Strip, "Strip template comments from output")
cmd.InitDefaultVersionFlag()

return cmd
}
Expand Down

0 comments on commit 9d7e322

Please sign in to comment.