def main():
description ="""Start a TeleCaster streaming server"""
parser = argparse.ArgumentParser(description=description)
- parser.add_argument("--config", help="config file", type=str)
- parser.add_argument("--verbose", help="verbose", action="store_true")
- parser.add_argument("--dry-run", help="dry run", action="store_true")
+ parser.add_argument("-c", "--config", help="config file", type=str)
+ parser.add_argument("-v", "--verbose", help="verbose", action="store_true")
+ parser.add_argument("-d", "--dry-run", help="dry run", action="store_true")
args = vars(parser.parse_args())
if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]:
args['config'] = DEFAULT_CONFIG_FILE