summaryrefslogtreecommitdiff
path: root/voctocore/lib/args.py
blob: 2cef7f38cbe3d7ccfc9ba076ebc78b0eba3c4f96 (plain)
  1. #!/usr/bin/python3
  2. import argparse
  3. __all__ = ['Args']
  4. parser = argparse.ArgumentParser(description='Voctocore')
  5. parser.add_argument('-v', '--verbose', action='count', default=0,
  6. help="Also print INFO and DEBUG messages.")
  7. parser.add_argument('-c', '--color', action='store', choices=['auto', 'always', 'never'], default='auto',
  8. help="Control the use of colors in the Log-Output")
  9. parser.add_argument('-t', '--timestamp', action='count' , default=0,
  10. help="Control the use of timestamps in the Log-Output")
  11. parser.add_argument('-i', '--ini-file', action='store',
  12. help="Load a custom config.ini-File")
  13. Args = parser.parse_args()