use terse flag syntax

This commit is contained in:
Daylin Morgan 2025-02-19 16:04:31 -06:00
parent f4c45d1ae4
commit 1324ba5415
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 2 additions and 8 deletions

View file

@ -427,10 +427,7 @@ when isMainModule:
flags:
debug "show debug"
testCard "show test card"
style:
T string
? "set style for string"
- "s"
s|style(string, "set style for string")
run:
if testCard: showTestCard()
for arg in args:

View file

@ -143,10 +143,7 @@ when isMainModule:
args seq[string]
flags:
demo "show demo"
separator:
T string
help "separator to split items"
short "s"
s|separator(string, "separator to split items")
run:
var items: seq[string]
if demo: