Skip to content

Commit

Permalink
change --method to use -M for backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 3, 2017
1 parent 2638396 commit b120c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jiracmd/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func CmdRequestRegistry(o *oreo.Client) *jiracli.CommandRegistryEntry {
}

func CmdRequestUsage(cmd *kingpin.CmdClause, opts *RequestOptions) error {
cmd.Flag("method", "HTTP request method to use").Short('m').EnumVar(&opts.Method, "GET", "PUT", "POST", "DELETE")
cmd.Flag("method", "HTTP request method to use").Short('M').EnumVar(&opts.Method, "GET", "PUT", "POST", "DELETE")
cmd.Arg("API", "Path to Jira API (ie: /rest/api/2/issue)").Required().StringVar(&opts.URI)
cmd.Arg("JSON", "JSON Content to send to API").StringVar(&opts.Data)

Expand Down

0 comments on commit b120c0b

Please sign in to comment.