Skip to content

Commit

Permalink
Merge pull request #1531 from dmach/help-no-creds
Browse files Browse the repository at this point in the history
Never ask for credentials when displaying help
  • Loading branch information
dmach authored Apr 8, 2024
2 parents a2b527b + 9c09f74 commit dabefbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ def init_arguments(self):
)

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:
Expand Down

0 comments on commit dabefbb

Please sign in to comment.