Skip to content

Commit

Permalink
Merge "Pass global -nolog argument into bot script from wrapper."
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Dec 19, 2023
2 parents f6e0b31 + 5f627f2 commit f02da47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pywikibot/scripts/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ def execute():
"""
global filename

# If -nolog options are in global args, add them to
# script args.
if '-nolog' in global_args:
script_args.append('-nolog')

if global_args: # don't use sys.argv
unknown_args = pwb.handle_args(global_args)
if unknown_args: # pragma: no cover
Expand Down

0 comments on commit f02da47

Please sign in to comment.