diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-20 08:45:03 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-20 08:45:03 +0200 |
commit | 9cc8fec370867d2f75b16c3ec85a38a5c379909a (patch) | |
tree | 31b46906d67f218cc267deb764a18d446cd0220f /compiler/commands.nim | |
parent | 262aafa0a915fc5c769824f7f7d63f9dc9e649c7 (diff) | |
download | Nim-9cc8fec370867d2f75b16c3ec85a38a5c379909a.tar.gz |
replace --advanced by --fullhelp; refs #7621
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 7274004a9..ec58706f3 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -77,6 +77,14 @@ proc writeAdvancedUsage(pass: TCmdLinePass) = {msgStdout}) msgQuit(0) +proc writeFullhelp(pass: TCmdLinePass) = + if pass == passCmd1: + msgWriteln(`%`(HelpMessage, [VersionAsString, + platform.OS[platform.hostOS].name, + CPU[platform.hostCPU].name]) & Usage & AdvancedUsage, + {msgStdout}) + msgQuit(0) + proc writeVersionInfo(pass: TCmdLinePass) = if pass == passCmd1: msgWriteln(`%`(HelpMessage, [VersionAsString, @@ -611,6 +619,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "advanced": expectNoArg(switch, arg, pass, info) writeAdvancedUsage(pass) + of "fullhelp": + expectNoArg(switch, arg, pass, info) + writeFullhelp(pass) of "help", "h": expectNoArg(switch, arg, pass, info) helpOnError(pass) |