add short option-flags to cli

This commit is contained in:
Thor77 2016-05-21 22:02:27 +02:00
parent 2b9e9d0911
commit b80be2b1c5
1 changed files with 8 additions and 5 deletions

View File

@ -16,20 +16,23 @@ def cli():
description='A simple Teamspeak stats-generator - based on server-logs' description='A simple Teamspeak stats-generator - based on server-logs'
) )
parser.add_argument( 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( parser.add_argument(
'--idmap', type=str, help='path to id_map', default='id_map.json' '--idmap', type=str, help='path to id_map', default='id_map.json'
) )
parser.add_argument( 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( parser.add_argument(
'--output', type=str, help='path to the output-file', '-o', '--output',
default='stats.html' type=str, help='path to the output-file', default='stats.html'
) )
parser.add_argument( parser.add_argument(
'--debug', help='debug mode', action='store_true' '-d', '--debug',
help='debug mode', action='store_true'
) )
args = parser.parse_args() args = parser.parse_args()
if args.debug: if args.debug: