fix the indentation in --help and --fullhelp (#15387)
* fix the indentation in `--help` and `--fullhelp` * a better way to fix it
This commit is contained in:
parent
94c8d53a03
commit
fe3211fbcf
3 changed files with 9 additions and 9 deletions
|
|
@ -59,8 +59,8 @@ proc genFeatureDesc[T: enum](t: typedesc[T]): string {.compileTime.} =
|
||||||
result.add $f
|
result.add $f
|
||||||
|
|
||||||
const
|
const
|
||||||
Usage = slurp"../doc/basicopt.txt".replace(" //", " ")
|
Usage = slurp"../doc/basicopt.txt".replace(" //", " ")
|
||||||
AdvancedUsage = slurp"../doc/advopt.txt".replace(" //", " ") % [genFeatureDesc(Feature), genFeatureDesc(LegacyFeature)]
|
AdvancedUsage = slurp"../doc/advopt.txt".replace(" //", " ") % [genFeatureDesc(Feature), genFeatureDesc(LegacyFeature)]
|
||||||
|
|
||||||
proc getCommandLineDesc(conf: ConfigRef): string =
|
proc getCommandLineDesc(conf: ConfigRef): string =
|
||||||
result = (HelpMessage % [VersionAsString, platform.OS[conf.target.hostOS].name,
|
result = (HelpMessage % [VersionAsString, platform.OS[conf.target.hostOS].name,
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ Advanced commands:
|
||||||
//ctags create a tags file
|
//ctags create a tags file
|
||||||
//buildIndex build an index for the whole documentation
|
//buildIndex build an index for the whole documentation
|
||||||
//genDepend generate a DOT file containing the
|
//genDepend generate a DOT file containing the
|
||||||
module dependency graph
|
module dependency graph
|
||||||
//dump dump all defined conditionals and search paths
|
//dump dump all defined conditionals and search paths
|
||||||
see also: --dump.format:json (useful with: ` | jq`)
|
see also: --dump.format:json (useful with: ` | jq`)
|
||||||
//check checks the project for syntax and semantic
|
//check checks the project for syntax and semantic
|
||||||
|
|
||||||
Runtime checks (see -x):
|
Runtime checks (see -x):
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
nim command [options] [projectfile] [arguments]
|
nim command [options] [projectfile] [arguments]
|
||||||
|
|
||||||
Command:
|
Command:
|
||||||
//compile, c compile project with default code generator (C)
|
//compile, c compile project with default code generator (C)
|
||||||
//r compile to $nimcache/projname, run with [arguments]
|
//r compile to $nimcache/projname, run with [arguments]
|
||||||
using backend specified by `--backend` (default: c)
|
using backend specified by `--backend` (default: c)
|
||||||
//doc generate the documentation for inputfile for
|
//doc generate the documentation for inputfile for
|
||||||
backend specified by `--backend` (default: c)
|
backend specified by `--backend` (default: c)
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
arguments are passed to the program being run (if --run option is selected)
|
arguments are passed to the program being run (if --run option is selected)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue