Skip to content

Commit f7587f4

Browse files
deepcubeldelossa
authored andcommitted
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
1 parent 0e3082f commit f7587f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jiracmd/block.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ func CmdBlockUsage(cmd *kingpin.CmdClause, opts *BlockOptions) error {
5656
}
5757
return nil
5858
}).String()
59-
cmd.Arg("BLOCKER", "blocker issue").Required().StringVar(&opts.OutwardIssue.Key)
60-
cmd.Arg("ISSUE", "issue that is blocked").Required().StringVar(&opts.InwardIssue.Key)
59+
cmd.Arg("ISSUE", "issue that is blocked").Required().StringVar(&opts.OutwardIssue.Key)
60+
cmd.Arg("BLOCKER", "blocker issue").Required().StringVar(&opts.InwardIssue.Key)
6161
return nil
6262
}
6363

0 commit comments

Comments
 (0)