mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
12 lines
313 B
Python
12 lines
313 B
Python
import re
|
|
from argenta.command import Command, Flag, Flags
|
|
|
|
flags = Flags(
|
|
[
|
|
Flag("host", possible_values=re.compile(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$")),
|
|
Flag("port", possible_values=re.compile(r"^\d{1,5}$")),
|
|
]
|
|
)
|
|
|
|
cmd = Command("start", description="Start the server", flags=flags)
|