use syntax to prevent ligature funny business

This commit is contained in:
Daylin Morgan 2023-09-12 00:40:13 -05:00
parent fd43f537b1
commit 6b79b0de07
Signed by: daylin
GPG Key ID: C1E52E7DD81DF79F
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ when isMainModule:
import std/[strformat, parseopt]
const version = staticExec "git describe --tags --always --dirty=-dev"
let help = &"""
{bb"[bold]bbansi[/] \[[green]args...[/]] [faint]\[-h|-v][/]"}
{bb"[bold]bbansi[/] \[[green]args...[/]] [faint][[-h,-v][/]"}
{bb"[italic]usage"}:
bbansi "[yellow] yellow text!"
@ -144,7 +144,7 @@ flags:
""" & $(bb(collect(for (s, l, d) in [
("h", "help", "show this help"),
("v", "version", "show version")]:
&"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] | {d}").join("\n ")
&"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] {d}").join("\n ")
))
proc writeHelp() =
echo help