From 2afbbf8d90f7510949e1e94d96f46dc77d204029 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 6 May 2017 00:38:59 +0200 Subject: [PATCH] merge --- play zone/argp.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 play zone/argp.py diff --git a/play zone/argp.py b/play zone/argp.py new file mode 100755 index 00000000..f97130d1 --- /dev/null +++ b/play zone/argp.py @@ -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)