jenkins-bot has submitted this change and it was merged.
Change subject: Enable -help option for pwb.py ......................................................................
Enable -help option for pwb.py
Just allow pwb.py -help or pwb.py --help without OSError exception "-help.py not found!".
Change-Id: Ic2851ee783fe6079304e00751e287a8fa641a5e7 --- M pwb.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index 1b2cb3e..11ad733 100644 --- a/pwb.py +++ b/pwb.py @@ -23,6 +23,7 @@ # [3] https://bitbucket.org/ned/coveragepy/src/2c5fb3a8b81c/setup.py?at=default#cl...
import os +import re import sys import types
@@ -176,7 +177,7 @@ sys.exit(1)
if __name__ == "__main__": - if len(sys.argv) > 1: + if len(sys.argv) > 1 and not re.match('-{1,2}help', sys.argv[1]): file_package = None tryimport_pwb() filename = sys.argv[1]
pywikibot-commits@lists.wikimedia.org