Revision: 6349 Author: valhallasw Date: 2009-02-13 21:19:31 +0000 (Fri, 13 Feb 2009)
Log Message: ----------- Improved verbose handling
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-02-13 16:06:26 UTC (rev 6348) +++ trunk/pywikipedia/wikipedia.py 2009-02-13 21:19:31 UTC (rev 6349) @@ -6319,8 +6319,6 @@ elif arg == '-nolog': setLogfileStatus(False) elif arg == '-verbose' or arg == "-v": - output(u'Pywikipediabot %s' % (version.getversion())) - output(u'Python %s' % (sys.version)) verbose += 1 elif arg == '-daemonize': import daemonize @@ -6332,6 +6330,9 @@ # the argument is not global. Let the specific bot script care # about it. nonGlobalArgs.append(arg) + if verbose: + output(u'Pywikipediabot %s' % (version.getversion())) + output(u'Python %s' % (sys.version)) return nonGlobalArgs
#########################