merge
This commit is contained in:
parent
f4e0af2401
commit
2afbbf8d90
12
play zone/argp.py
Executable file
12
play zone/argp.py
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/python3
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
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')
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
parser.print_help()
|
||||||
|
|
||||||
|
print(args.setting)
|
Loading…
Reference in New Issue
Block a user