Skip to content

Light BG Config File

c-blake edited this page Jul 24, 2021 · 1 revision

This is suitable to just copy-paste into a file called $HOME/.config/cligen and edit.

# This is a Nim parsecfg config file for cligen apps
[color]
optKeys  = red                  # bold/italic/etc here are also ok
valType  = cyan
dflval   = NONE
#descrip  = purple
command = bold
#doc     = italic
#args    = underline

# How to render .rst/.md-ish text style markup from `doc`/`help[param]`
[render]
singleStar = "italic     ; -italic" # colors here are also ok
doubleStar = "bold       ; -bold"
tripleStar = "bold italic; -bold -italic"
singleBQuo = "underline  ; -underline"
doubleBQuo = "inverse    ; -inverse"

[layout]
#rowSep  = "\n"   # Default is ""; "\n" => double-spaced
colGap  = 1      # colors make tighter format more tolerable
#minLast = 16    # This is the default
#cols    = "clOptKeys clValType clDflVal clDescrip" # The default

[syntax] # Changing can EASILY break cfg files|script-usage of progs!
#reqSep   = off  # This is the default
sepChars = "="   # Do not use Araq's weird : convention

[templates]
useHdr   = "Usage:\n  "
use      = "$command $args\n${doc}options:\n$options"
useMulti = """${doc}Usage:
  $command {SUBCMD}  [sub-command options & parameters]
where {SUBCMD} is one of:
$subcmds
$command {-h|--help} or with no args at all prints this message.
$command --help-syntax gives general cligen syntax help.
Run "$command {help SUBCMD|SUBCMD --help}" to see help for just SUBCMD.
Run "$command help" to get *comprehensive* help.${ifVersion}""" ```