mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-11 18:45:29 +03:00
Update documentation and code snippets
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
from argenta.command import Flag, Flags
|
||||
|
||||
# Создание коллекции
|
||||
flags: Flags = Flags()
|
||||
|
||||
# Динамическое добавление флагов
|
||||
flags.add_flag(Flag("config"))
|
||||
flags.add_flag(Flag("debug"))
|
||||
flags.add_flag(Flag("log-level", possible_values=["INFO", "DEBUG", "ERROR"]))
|
||||
|
||||
print(len(flags.flags)) # 3
|
||||
print(len(flags)) # 3
|
||||
|
||||
Reference in New Issue
Block a user