mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-22 09:25:49 -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:
|
||||
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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue