Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/92832
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/32/92832/1
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: newchange
Gerrit-Change-Id: I96ee324611fdd77ef48ce78aafa9b7466cb7723f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits