mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
23 lines
453 B
Python
23 lines
453 B
Python
from argenta.orchestrator.argparser import ArgParser, BooleanArgument
|
|
|
|
# Create boolean arguments
|
|
verbose_arg = BooleanArgument(
|
|
"verbose",
|
|
help="Enable verbose output"
|
|
)
|
|
|
|
debug_arg = BooleanArgument(
|
|
"debug",
|
|
help="Enable debug mode"
|
|
)
|
|
|
|
no_cache_arg = BooleanArgument(
|
|
"no-cache",
|
|
help="Disable caching"
|
|
)
|
|
|
|
# Register in ArgParser
|
|
parser = ArgParser(
|
|
processed_args=[verbose_arg, debug_arg, no_cache_arg],
|
|
name="MyApp"
|
|
) |