mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
dcos
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from argenta import InputFlag, ValidationStatus
|
||||
|
||||
flag1 = InputFlag(
|
||||
name="debug",
|
||||
prefix="--",
|
||||
input_value=None,
|
||||
status=ValidationStatus.VALID
|
||||
)
|
||||
|
||||
flag2 = InputFlag(
|
||||
name="debug",
|
||||
prefix="-",
|
||||
input_value="true",
|
||||
status=ValidationStatus.INVALID
|
||||
)
|
||||
|
||||
# Сравнение по имени (префикс и значение не учитываются)
|
||||
if flag1 == flag2:
|
||||
print("Флаги имеют одинаковое имя") # Выведется
|
||||
Reference in New Issue
Block a user