mirror of
https://github.com/daylinmorgan/bbansi.git
synced 2024-11-21 17:00:44 -06:00
use syntax to prevent ligature funny business
This commit is contained in:
parent
fd43f537b1
commit
6b79b0de07
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ when isMainModule:
|
||||||
import std/[strformat, parseopt]
|
import std/[strformat, parseopt]
|
||||||
const version = staticExec "git describe --tags --always --dirty=-dev"
|
const version = staticExec "git describe --tags --always --dirty=-dev"
|
||||||
let help = &"""
|
let help = &"""
|
||||||
{bb"[bold]bbansi[/] \[[green]args...[/]] [faint]\[-h|-v][/]"}
|
{bb"[bold]bbansi[/] \[[green]args...[/]] [faint][[-h,-v][/]"}
|
||||||
|
|
||||||
{bb"[italic]usage"}:
|
{bb"[italic]usage"}:
|
||||||
bbansi "[yellow] yellow text!"
|
bbansi "[yellow] yellow text!"
|
||||||
|
@ -144,7 +144,7 @@ flags:
|
||||||
""" & $(bb(collect(for (s, l, d) in [
|
""" & $(bb(collect(for (s, l, d) in [
|
||||||
("h", "help", "show this help"),
|
("h", "help", "show this help"),
|
||||||
("v", "version", "show version")]:
|
("v", "version", "show version")]:
|
||||||
&"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] | {d}").join("\n ")
|
&"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] {d}").join("\n ")
|
||||||
))
|
))
|
||||||
proc writeHelp() =
|
proc writeHelp() =
|
||||||
echo help
|
echo help
|
||||||
|
|
Loading…
Reference in a new issue