jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/631815 )

Change subject: [bugfix] fix for -help arg
......................................................................

[bugfix] fix for -help arg

Change-Id: I97b32b86a6d084c5599d11ee1b8b58141a6d9f8e
Signed-off-by: Xqt <[email protected]>
---
M pwb.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pwb.py b/pwb.py
index 497f72f..70842a6 100755
--- a/pwb.py
+++ b/pwb.py
@@ -348,7 +348,7 @@
             warn('Parent module %s not found: %s'
                  % (file_package, e), ImportWarning)

-    help_option = any(arg.startswith('-help:') or arg == 'help'
+    help_option = any(arg.startswith('-help:') or arg == '-help'
                       for arg in script_args)
     if check_modules(filename) or help_option:
         run_python_file(filename,

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/631815
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I97b32b86a6d084c5599d11ee1b8b58141a6d9f8e
Gerrit-Change-Number: 631815
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to