adding otherwise deprecated -v to options

This commit is contained in:
ville rantanen
2012-03-27 10:49:49 +03:00
parent 4a3a3a4420
commit 86c4a17238
3 changed files with 6 additions and 3 deletions

View File

@@ -41,7 +41,8 @@ def setupoptions():
''' Setup options '''
usage='''Usage: %(prog)s [options] folder
folder is the root folder of the image album (defaults to current folder).'''
parser=ArgumentParser(description=usage,version=Qalbum.__version__)
parser=ArgumentParser(description=usage)
parser.add_argument("-v",action='version', version=Qalbum.__version__)
parser.add_argument("-f",action="store_true",dest="force",default=False,
help="Force regeneration of thumbnails and medium sized")
parser.add_argument("-c",action="store_true",dest="clean",default=False,