From 1419cf5dc2d3dff9f19715b4d3a83983b6f76977 Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Wed, 26 Feb 2025 13:36:24 -0700 Subject: [PATCH] added --debug flag --- pywmreceived.py | 2 ++ test.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 test.py diff --git a/pywmreceived.py b/pywmreceived.py index 174679f..c4234af 100755 --- a/pywmreceived.py +++ b/pywmreceived.py @@ -247,6 +247,8 @@ def main(config, debug): The main entry point of the application. Parameters: + config (str): path to config file + debug (bool): is debug output enabled """ if not debug: ic.disable() diff --git a/test.py b/test.py new file mode 100755 index 0000000..987c672 --- /dev/null +++ b/test.py @@ -0,0 +1,15 @@ +#!./venv/bin/python3 + +import click +import os + +#@click.option('--config', '-c', default=config_file, help='Path to the configuration file.') + +@click.command() +@click.option('--debug/-d', envvar='DEVELOPMENTS', default='false', help='enable dubug output') +def main(debug): + print(debug) + + +if __name__ == '__main__': + main()