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:
Miran
2020-09-23 12:44:41 +02:00
committed by GitHub
parent 94c8d53a03
commit fe3211fbcf
3 changed files with 9 additions and 9 deletions

View File

@@ -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,