mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-11-16 06:28:32 -06:00
add a use that doesn't do anything
This commit is contained in:
parent
d105e821f8
commit
9afc339a97
1 changed files with 6 additions and 4 deletions
|
@ -35,21 +35,23 @@ proc helpAttrOff(): Table[string,string] =
|
|||
"args" : resetCode,
|
||||
}.toTable()
|
||||
|
||||
|
||||
proc hwylCli*(
|
||||
clcfg: var ClCfg,
|
||||
styles: CligenStyle = CligenStyle(),
|
||||
useMulti: string = "${doc}[bold]Usage[/]:\n $command {SUBCMD} [[sub-command options & parameters]\n\n[bold]subcommands[/]:\n$subcmds",
|
||||
useHdr: string = "[bold]usage[/]:\n "
|
||||
useHdr: string = "[bold]usage[/]:\n ",
|
||||
use: string = "$command $args\n${doc}[bold]Options[/]:\n$options"
|
||||
) =
|
||||
|
||||
if clCfg.useMulti == "":
|
||||
clCfg.useMulti = $bb(useMulti)
|
||||
|
||||
if clCfg.helpAttr.len == 0:
|
||||
clCfg.helpAttr = styles.helpAttr()
|
||||
clCfg.helpAttrOff = helpAttrOff()
|
||||
|
||||
# clCfg.use does nothing?
|
||||
# this currently has no effect
|
||||
if clCfg.use == "":
|
||||
clCfg.use = $bb(use)
|
||||
if clCfg.useHdr == "":
|
||||
clCfg.useHdr = $bb(useHdr)
|
||||
|
||||
|
|
Loading…
Reference in a new issue