From b29cef59ee75bed31c0d4ff51ba3eb955183f523 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 29 Jan 2026 13:53:36 +0000 Subject: [PATCH] Initial upload: API Mock CLI v0.1.0 --- src/cli/options.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/cli/options.py diff --git a/src/cli/options.py b/src/cli/options.py new file mode 100644 index 0000000..7666072 --- /dev/null +++ b/src/cli/options.py @@ -0,0 +1,28 @@ +from typing import Optional +import click + + +def debug_option(f): + return click.option( + "--debug/--no-debug", + default=False, + help="Enable debug mode" + )(f) + + +def config_option(f): + return click.option( + "--config", + type=click.Path(exists=True), + default="config.yaml", + help="Path to configuration file" + )(f) + + +def verbose_option(f): + return click.option( + "-v", + "--verbose", + count=2, + help="Increase verbosity (use -vv for debug)" + )(f)