1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

Never ask for credentials when displaying help

This commit is contained in:
Daniel Mach 2024-04-08 11:38:43 +02:00
parent 35f1c91f46
commit 9c09f74ddb

View File

@ -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: