mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +02:00
block: reverse order of arguments
The BLOCKER and ISSUE arguments for the block command were incorrect. With hypothetical ticket names BLOCKER and ISSUE, calling jira block BLOCKER ISSUE resulted in ISSUE blocks BLOCKER BLOCKER is blocked by ISSUE which is the reverse of the documentation which claims it should be BLOCKER blocks ISSUE ISSUE is blocked by BLOCKER Reverse order of the arguments so the documentation matches the actual usage. This does not break existing usage, only updates the documentation. Fixes #383
This commit is contained in:
committed by
Louis DeLosSantos
parent
0e3082fab6
commit
f7587f43f1
+2
-2
@@ -56,8 +56,8 @@ func CmdBlockUsage(cmd *kingpin.CmdClause, opts *BlockOptions) error {
|
||||
}
|
||||
return nil
|
||||
}).String()
|
||||
cmd.Arg("BLOCKER", "blocker issue").Required().StringVar(&opts.OutwardIssue.Key)
|
||||
cmd.Arg("ISSUE", "issue that is blocked").Required().StringVar(&opts.InwardIssue.Key)
|
||||
cmd.Arg("ISSUE", "issue that is blocked").Required().StringVar(&opts.OutwardIssue.Key)
|
||||
cmd.Arg("BLOCKER", "blocker issue").Required().StringVar(&opts.InwardIssue.Key)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user