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()