added barebone cli
This commit is contained in:
parent
eff7f4c0b8
commit
bc1e42be31
@ -16,3 +16,19 @@ def cli():
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
# Configure logging based on the debug flag
|
||||
if args.debug:
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
logging.debug("Debug logging enabled")
|
||||
else:
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
|
Loading…
x
Reference in New Issue
Block a user