Skip to content

Commit

Permalink
fix usage, overrides not serialized correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 3, 2017
1 parent fa4ac25 commit 84119a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jiracmd/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func CmdCommentUsage(cmd *kingpin.CmdClause, opts *CommentOptions) error {
jiracli.BrowseUsage(cmd, &opts.CommonOptions)
jiracli.EditorUsage(cmd, &opts.CommonOptions)
jiracli.TemplateUsage(cmd, &opts.CommonOptions)
cmd.Flag("noedit", "Disable opening the editor").SetValue(&opts.SkipEditing)
cmd.Flag("comment", "Comment message for issue").Short('m').PreAction(func(ctx *kingpin.ParseContext) error {
opts.Overrides["comment"] = jiracli.FlagValue(ctx, "comment")
return nil
Expand All @@ -54,7 +55,7 @@ func CmdCommentUsage(cmd *kingpin.CmdClause, opts *CommentOptions) error {
func CmdComment(o *oreo.Client, globals *jiracli.GlobalOptions, opts *CommentOptions) error {
comment := jiradata.Comment{}
input := struct {
Overrides map[string]string
Overrides map[string]string `yaml:"overrides,omitempty" json:"overrides,omitempty"`
}{
opts.Overrides,
}
Expand Down

0 comments on commit 84119a2

Please sign in to comment.