aboutsummaryrefslogtreecommitdiff
path: root/voctogui/lib/args.py
blob: f50126fe620fc285e267df985d5bab9e54e7251b (plain)
  1. import argparse
  2. __all__ = ['Args']
  3. parser = argparse.ArgumentParser(description='Voctogui')
  4. parser.add_argument('-v', '--verbose', action='count', default=0,
  5. help="Also print INFO and DEBUG messages.")
  6. parser.add_argument('-c', '--color',
  7. action='store',
  8. choices=['auto', 'always', 'never'],
  9. default='auto',
  10. help="Control the use of colors in the Log-Output")
  11. parser.add_argument('-t', '--timestamp', action='store_true',
  12. help="Enable timestamps in the Log-Output")
  13. parser.add_argument('-i', '--ini-file', action='store',
  14. help="Load a custom config.ini-File")
  15. parser.add_argument('-u', '--ui-file', action='store',
  16. help="Load a custom .ui-File")
  17. parser.add_argument('-H', '--host', action='store',
  18. help="Connect to this host instead of the configured one.")
  19. Args = parser.parse_args()