exit properly on a version command

git-svn-id: http://comictagger.googlecode.com/svn/trunk@253 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-12-12 23:23:32 +00:00
parent 584f78bc3c
commit 152040964e

View File

@ -228,7 +228,7 @@ If no options are given, {0} will run in windowed mode
self.no_overwrite = True
if o == "--version":
print "ComicTagger version: ", ctversion.version
quit()
sys.exit(0)
if o in ("-t", "--type"):
if a.lower() == "cr":
self.data_style = MetaDataStyle.CIX