Skip to content

Commit

Permalink
data argument is optional (for GET and DELETE requests)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 3, 2017
1 parent 84119a2 commit 4b60313
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 @@ -46,7 +46,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.Arg("API", "Path to Jira API (ie: /rest/api/2/issue)").Required().StringVar(&opts.URI)
cmd.Arg("JSON", "JSON Content to send to API").Required().StringVar(&opts.Data)
cmd.Arg("JSON", "JSON Content to send to API").StringVar(&opts.Data)

return nil
}
Expand Down

0 comments on commit 4b60313

Please sign in to comment.