mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Never ask for credentials when displaying help
This commit is contained in:
parent
35f1c91f46
commit
9c09f74ddb
@ -412,6 +412,10 @@ class OscMainCommand(MainCommand):
|
||||
)
|
||||
|
||||
def post_parse_args(self, args):
|
||||
if args.command == "help":
|
||||
# HACK: never ask for credentials when displaying help
|
||||
return
|
||||
|
||||
# apiurl hasn't been specified by the user
|
||||
# we need to set it here because the 'default' option of an argument doesn't support lazy evaluation
|
||||
if args.apiurl is None:
|
||||
|
Loading…
Reference in New Issue
Block a user