summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2020-09-23 12:44:41 +0200
committerGitHub <noreply@github.com>2020-09-23 12:44:41 +0200
commitfe3211fbcfa6b14a2e2fcd4dfb8664dcf8a1bd21 (patch)
treeed3d87a0a65496fe80af0458c24ecc13e005949c /compiler
parent94c8d53a03c437d1601fa75aecb5b84bb694711f (diff)
downloadNim-fe3211fbcfa6b14a2e2fcd4dfb8664dcf8a1bd21.tar.gz
fix the indentation in `--help` and `--fullhelp` (#15387)
* fix the indentation in `--help` and `--fullhelp`

* a better way to fix it
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index a76a5be73..17124a759 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -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,