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: flags:
debug "show debug" debug "show debug"
testCard "show test card" testCard "show test card"
style: s|style(string, "set style for string")
T string
? "set style for string"
- "s"
run: run:
if testCard: showTestCard() if testCard: showTestCard()
for arg in args: for arg in args:

View file

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