mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
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:
@@ -59,8 +59,8 @@ proc genFeatureDesc[T: enum](t: typedesc[T]): string {.compileTime.} =
|
||||
result.add $f
|
||||
|
||||
const
|
||||
Usage = slurp"../doc/basicopt.txt".replace(" //", " ")
|
||||
AdvancedUsage = slurp"../doc/advopt.txt".replace(" //", " ") % [genFeatureDesc(Feature), genFeatureDesc(LegacyFeature)]
|
||||
Usage = slurp"../doc/basicopt.txt".replace(" //", " ")
|
||||
AdvancedUsage = slurp"../doc/advopt.txt".replace(" //", " ") % [genFeatureDesc(Feature), genFeatureDesc(LegacyFeature)]
|
||||
|
||||
proc getCommandLineDesc(conf: ConfigRef): string =
|
||||
result = (HelpMessage % [VersionAsString, platform.OS[conf.target.hostOS].name,
|
||||
|
||||
@@ -11,9 +11,9 @@ Advanced commands:
|
||||
//ctags create a tags file
|
||||
//buildIndex build an index for the whole documentation
|
||||
//genDepend generate a DOT file containing the
|
||||
module dependency graph
|
||||
module dependency graph
|
||||
//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
|
||||
|
||||
Runtime checks (see -x):
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
nim command [options] [projectfile] [arguments]
|
||||
|
||||
Command:
|
||||
//compile, c compile project with default code generator (C)
|
||||
//r compile to $nimcache/projname, run with [arguments]
|
||||
using backend specified by `--backend` (default: c)
|
||||
//doc generate the documentation for inputfile for
|
||||
backend specified by `--backend` (default: c)
|
||||
//compile, c compile project with default code generator (C)
|
||||
//r compile to $nimcache/projname, run with [arguments]
|
||||
using backend specified by `--backend` (default: c)
|
||||
//doc generate the documentation for inputfile for
|
||||
backend specified by `--backend` (default: c)
|
||||
|
||||
Arguments:
|
||||
arguments are passed to the program being run (if --run option is selected)
|
||||
|
||||
Reference in New Issue
Block a user