improve -d

This commit is contained in:
chrys 2017-06-30 22:33:10 +02:00
parent 8ddd9f777b
commit 089c3265a9

View File

@ -38,7 +38,7 @@ class fenrirManager():
parser = argparse.ArgumentParser(description="Fenrir Help")
parser.add_argument('-s', '--setting', metavar='SETTING-FILE', default='/etc/fenrir/settings/settings.conf', help='Use a specified settingsfile')
parser.add_argument('-o', '--options', metavar='SECTION#SETTING=VALUE,..', default='', help='Overwrite options in given settings file')
parser.add_argument('-d', '--debug', const=True, default='', nargs='?', help='Turns on Debugmode')
parser.add_argument('-d', '--debug', action='store_true', help='Turns on Debugmode')
try:
args = parser.parse_args()
except Exception as e: