Skip to content

Commit d154649

Browse files
committed
cli: Add 'new --private'
The API accepts it, it's just not exposed on the command line Signed-off-by: Cole Robinson <[email protected]>
1 parent 91b3569 commit d154649

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

bugzilla.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ Reset assignee to component default
197197
Reset QA contact to component default
198198

199199

200+
.SH \[oq]new\[cq] specific options
201+
.IP "--private"
202+
Mark new comment as private
203+
204+
200205
.SH \[oq]attach\[cq] options
201206
.IP "--file=FILENAME, -f FILENAME"
202207
File to attach, or filename for data provided on stdin

bugzilla/_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ def _setup_action_new_parser(subparsers):
255255
p = subparsers.add_parser("new", description=description)
256256

257257
_parser_add_bz_fields(p, "new")
258+
g = p.add_argument_group("'new' specific options")
259+
g.add_argument('--private', action='store_true', default=False,
260+
help='Mark new comment as private')
258261

259262

260263
def _setup_action_query_parser(subparsers):
@@ -781,6 +784,7 @@ def parse_multi(val):
781784
sub_component=opt.sub_component or None,
782785
alias=opt.alias or None,
783786
comment_tags=opt.comment_tag or None,
787+
comment_private=opt.private or None,
784788
)
785789

786790
_merge_field_opts(ret, opt, parser)

0 commit comments

Comments
 (0)