1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-13 11:15:13 +01:00

Merge pull request #1531 from dmach/help-no-creds

Never ask for credentials when displaying help
This commit is contained in:
Daniel Mach 2024-04-08 13:40:10 +02:00 committed by GitHub
commit dabefbb913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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: