Code: Alles auswählen
options:
-h, --help show this help message and exit
-fFORMAT, --format=FORMAT
use to specify file format
-pPATH, --path=PATH use to specify directory
Ein Auszug aus dem dazugehörigen Skript:
Code: Alles auswählen
parser = OptionParser(usage=__doc__)
parser.add_option("-f", "--format", action="store", type="string", dest="format", help="use to specify file format")
parser.add_option("-p", "--path", action="store", type="string", dest="path", help="use to specify directory")
Christian