mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-22 17:25:51 -06:00
use terse flag syntax
This commit is contained in:
parent
f4c45d1ae4
commit
1324ba5415
2 changed files with 2 additions and 8 deletions
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue