mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-23 09:45:50 -06:00
26 lines
468 B
Nim
26 lines
468 B
Nim
|
import std/strformat
|
||
|
import hwylterm, hwylterm/hwylcli
|
||
|
|
||
|
hwylCli:
|
||
|
name "inferred short flags"
|
||
|
settings InferShort
|
||
|
flags:
|
||
|
input:
|
||
|
T string
|
||
|
? "the input var"
|
||
|
output:
|
||
|
T string
|
||
|
? "the output var"
|
||
|
count:
|
||
|
T int
|
||
|
? "a number"
|
||
|
- n
|
||
|
nancy:
|
||
|
? "needed a flag that starts with n :)"
|
||
|
ignore:
|
||
|
S NoShort
|
||
|
? "a flag to not infer"
|
||
|
run:
|
||
|
echo fmt"{input=}, {output=}, {count=}, {nancy=}, {ignore=}"
|
||
|
|