From e1fae24a3b145d42eaa40d62f7aed8f00d6bdf51 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 23 May 2015 10:43:56 +0200 Subject: basic gui --- voctogui/lib/args.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 voctogui/lib/args.py (limited to 'voctogui/lib/args.py') diff --git a/voctogui/lib/args.py b/voctogui/lib/args.py new file mode 100644 index 0000000..3a9032f --- /dev/null +++ b/voctogui/lib/args.py @@ -0,0 +1,20 @@ +#!/usr/bin/python3 +import argparse + +__all__ = ['Args'] + +parser = argparse.ArgumentParser(description='Voctogui') +parser.add_argument('-v', '--verbose', action='count', + help="Also print INFO and DEBUG messages.") + +parser.add_argument('-c', '--color', action='store', choices=['auto', 'always', 'never'], default='auto', + help="Control the use of colors in the Log-Output") + +parser.add_argument('-i', '--ini-file', action='store', + help="Load a custom config.ini-File") + +parser.add_argument('-u', '--ui-file', action='store', + help="Load a custom .ui-File") + + +Args = parser.parse_args() -- cgit v1.2.3