mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-12-22 03:00:43 -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,
|
"args" : resetCode,
|
||||||
}.toTable()
|
}.toTable()
|
||||||
|
|
||||||
|
|
||||||
proc hwylCli*(
|
proc hwylCli*(
|
||||||
clcfg: var ClCfg,
|
clcfg: var ClCfg,
|
||||||
styles: CligenStyle = CligenStyle(),
|
styles: CligenStyle = CligenStyle(),
|
||||||
useMulti: string = "${doc}[bold]Usage[/]:\n $command {SUBCMD} [[sub-command options & parameters]\n\n[bold]subcommands[/]:\n$subcmds",
|
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 == "":
|
if clCfg.useMulti == "":
|
||||||
clCfg.useMulti = $bb(useMulti)
|
clCfg.useMulti = $bb(useMulti)
|
||||||
|
|
||||||
if clCfg.helpAttr.len == 0:
|
if clCfg.helpAttr.len == 0:
|
||||||
clCfg.helpAttr = styles.helpAttr()
|
clCfg.helpAttr = styles.helpAttr()
|
||||||
clCfg.helpAttrOff = helpAttrOff()
|
clCfg.helpAttrOff = helpAttrOff()
|
||||||
|
# this currently has no effect
|
||||||
# clCfg.use does nothing?
|
if clCfg.use == "":
|
||||||
|
clCfg.use = $bb(use)
|
||||||
if clCfg.useHdr == "":
|
if clCfg.useHdr == "":
|
||||||
clCfg.useHdr = $bb(useHdr)
|
clCfg.useHdr = $bb(useHdr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue