Skip to content

Commit

Permalink
Merge pull request #7 from allcloud-jonathan/fix/already-used-flag
Browse files Browse the repository at this point in the history
fixing #6. Drop the shorthand to resolve panic
  • Loading branch information
mattolenik authored Apr 8, 2019
2 parents 29ab006 + be8e3a3 commit 021a8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func getTokenType(val string) token.Type {
}

func init() {
SetCmd.PersistentFlags().BoolVarP(&config.ModifyInPlace, "in-place", "i", false, "edit the input file in-place rather than printing to stdout, conflicts with --out")
SetCmd.PersistentFlags().BoolVarP(&config.ModifyInPlace, "in-place", "", false, "edit the input file in-place rather than printing to stdout, conflicts with --out")
SetCmd.AddCommand(AppendCmd)
SetCmd.AddCommand(PrependCmd)
SetCmd.AddCommand(ReplaceCmd)
Expand Down

0 comments on commit 021a8cc

Please sign in to comment.