added --debug flag

This commit is contained in:
fwarren committed 2025-02-26 13:36:24 -07:00
1 parent 153665883f
commit 1419cf5dc2
2 files changed
+17

No files matched your search

+2
View File
@@ -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()
Executable
+15
View File
@@ -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()