This commit is contained in:
2025-11-28 17:24:31 +03:00
parent d3bf5e703d
commit 47fda23431
3 changed files with 25 additions and 47 deletions
+11
View File
@@ -0,0 +1,11 @@
config_arg = argspace.get_by_name("config")
if config_arg:
print(f"Config path: {config_arg.value}")
verbose_arg = argspace.get_by_name("verbose")
if verbose_arg and verbose_arg.value:
print("Verbose mode enabled")
unknown_arg = argspace.get_by_name("nonexistent")
if unknown_arg is None:
print("Argument not found")