added barebone cli
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user