jenkins-bot has submitted this change and it was merged.
Change subject: Show __doc__ if pwb.py is called without arguments
......................................................................
Show __doc__ if pwb.py is called without arguments
Change-Id: I96ee324611fdd77ef48ce78aafa9b7466cb7723f
---
M pwb.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
Pyfisch: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py
index 1c49181..d0e1aeb 100644
--- a/pwb.py
+++ b/pwb.py
@@ -124,3 +124,5 @@
else:
raise Exception("%s not found!" % fn)
run_python_file(fn, argv, argvu)
+elif __name__ == "__main__":
+ print __doc__
--
To view, visit https://gerrit.wikimedia.org/r/92832
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I96ee324611fdd77ef48ce78aafa9b7466cb7723f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Pyfisch <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits