Skip to content

Commit

Permalink
fix: fix required flag typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyhy96 committed Oct 17, 2019
1 parent 9578408 commit c5f21bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func init() {
rootCmd.Flags().StringP("work", "w", "", "the work path of files you want to replace")
rootCmd.Flags().StringVar(&fileType, "t", "", "the type of your replace file(default is json)")
rootCmd.MarkFlagRequired("file")
rootCmd.MarkFlagRequired("path")
rootCmd.MarkFlagRequired("work")
viper.SetDefault("author", "jonyhy <github/jonyhy96>")
}

Expand Down

0 comments on commit c5f21bc

Please sign in to comment.