Skip to content

Commit ccadfa5

Browse files
committed
Revert "bugs: --api-key is now required"
This reverts commit bb724ed. Per request from Arthur on IRC. parona reported it isn't working correctly and doesn't handle the arg. [This got lost before as I pushed on the gh side...] Bug: #217 Signed-off-by: Sam James <sam@gentoo.org>
1 parent 8a35645 commit ccadfa5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/pkgdev/scripts/argparsers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ def _determine_git_repo(parser, namespace):
4848

4949
class BugzillaApiKey:
5050
@classmethod
51-
def mangle_argparser(cls, parser, required=False):
51+
def mangle_argparser(cls, parser):
5252
parser.add_argument(
5353
"--api-key",
5454
metavar="TOKEN",
5555
help="Bugzilla API key",
56-
required=required,
5756
docs="""
5857
The Bugzilla API key to use for authentication. WARNING: using this
5958
option will expose your API key to other users of the same system.

src/pkgdev/scripts/pkgdev_bugs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
quiet=False,
4747
parents=(cwd_repo_argparser,),
4848
)
49-
BugzillaApiKey.mangle_argparser(bugs, required=True)
49+
BugzillaApiKey.mangle_argparser(bugs)
5050
bugs.add_argument(
5151
"targets",
5252
metavar="target",

0 commit comments

Comments
 (0)