From b80be2b1c54bc5c630516af9d7863a51c01e5780 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 21 May 2016 22:02:27 +0200 Subject: [PATCH] add short option-flags to cli --- tsstats/__main__.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tsstats/__main__.py b/tsstats/__main__.py index f85d501..8614bcb 100644 --- a/tsstats/__main__.py +++ b/tsstats/__main__.py @@ -16,20 +16,23 @@ def cli(): description='A simple Teamspeak stats-generator - based on server-logs' ) parser.add_argument( - '--config', type=str, help='path to config', default='config.ini' + '-c', '--config', + type=str, help='path to config', default='config.ini' ) parser.add_argument( '--idmap', type=str, help='path to id_map', default='id_map.json' ) parser.add_argument( - '--log', type=str, help='path to your logfile(s)' + '-l', '--log', + type=str, help='path to your logfile(s)' ) parser.add_argument( - '--output', type=str, help='path to the output-file', - default='stats.html' + '-o', '--output', + type=str, help='path to the output-file', default='stats.html' ) parser.add_argument( - '--debug', help='debug mode', action='store_true' + '-d', '--debug', + help='debug mode', action='store_true' ) args = parser.parse_args() if args.debug: