Files
Argenta/docs/code_snippets/flag/snippet4.py
T
2025-11-02 01:04:31 +03:00

13 lines
340 B
Python

from argenta.command import Flag
help_flag = Flag(name="help")
version_flag = Flag(name="V", prefix="-")
# Использование str() или print()
print(str(help_flag)) # --help
print(version_flag) # -V
# Форматирование строк
message = f"Use {help_flag} to see help"
print(message) # Use --help to see help