add test for subcommand aliases

This commit is contained in:
Daylin Morgan 2025-01-27 11:52:53 -06:00
parent d8719a2083
commit 7f37590184
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 8 additions and 0 deletions

View file

@ -22,3 +22,8 @@ hwylCli:
T seq[string]
run:
echo fmt"{input=} {outputs=}"
[ccccc]
... "a subcommand with an alias"
alias c
run:
echo "no flags :)"

View file

@ -30,6 +30,9 @@ suite "hwylcli":
"""input=in outputs=@["out1", "out2"]""",
)
okWithArgs("subcommands", "ccccc", """no flags :)""")
okWithArgs("subcommands", "c", """no flags :)""")
okWithArgs(
"posFirst", "--help",
"""