1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

Add usage() function.

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3506 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Tobias Markmann 2009-10-07 18:51:56 +00:00
parent 63f731e9ba
commit 214c4266c6

13
gen.py
View File

@ -166,11 +166,20 @@ def buildXEP( filename ):
else:
print "PDF(ERROR)"
def usage():
print "gen.py: generate nice XHTML and beatuy PDF out of the XEP XML"
print ""
print "Usage:"
print "gen.py xep-####.xml"
print ""
print "Options:"
print "-v Enable verbose output for debugging."
def main(argv):
try:
options, remainder = getopt.gnu_getopt(argv, "x")
options, remainder = getopt.gnu_getopt(argv, "v")
except getopt.GetoptError:
print "Error"
usage()
sys.exit(2)
for opt, arg in options: