Adding a verbosity mode argument handling.

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3499 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Tobias Markmann 2009-10-07 12:54:59 +00:00
parent 68f125afb0
commit 57df761cd0
1 changed files with 5 additions and 0 deletions

5
gen.py
View File

@ -42,6 +42,7 @@ import getopt
XEPPATH = "/var/www/vhosts/xmpp.org/extensions"
BUILDDICT = "/var/xsf/xepbuild.dict"
verbose = 0
last_build = {}
def filebase( filename ):
@ -156,6 +157,10 @@ def main(argv):
print "Error"
sys.exit(2)
for opt, arg in options:
if opt in ('-v'):
verbose = 1
xep = remainder[0]
last_build = loadDict(BUILDDICT)