replace --advanced by --fullhelp; refs #7621
This commit is contained in:
parent
262aafa0a9
commit
9cc8fec370
2 changed files with 12 additions and 1 deletions
|
|
@ -77,6 +77,14 @@ proc writeAdvancedUsage(pass: TCmdLinePass) =
|
||||||
{msgStdout})
|
{msgStdout})
|
||||||
msgQuit(0)
|
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) =
|
proc writeVersionInfo(pass: TCmdLinePass) =
|
||||||
if pass == passCmd1:
|
if pass == passCmd1:
|
||||||
msgWriteln(`%`(HelpMessage, [VersionAsString,
|
msgWriteln(`%`(HelpMessage, [VersionAsString,
|
||||||
|
|
@ -611,6 +619,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
of "advanced":
|
of "advanced":
|
||||||
expectNoArg(switch, arg, pass, info)
|
expectNoArg(switch, arg, pass, info)
|
||||||
writeAdvancedUsage(pass)
|
writeAdvancedUsage(pass)
|
||||||
|
of "fullhelp":
|
||||||
|
expectNoArg(switch, arg, pass, info)
|
||||||
|
writeFullhelp(pass)
|
||||||
of "help", "h":
|
of "help", "h":
|
||||||
expectNoArg(switch, arg, pass, info)
|
expectNoArg(switch, arg, pass, info)
|
||||||
helpOnError(pass)
|
helpOnError(pass)
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ Options:
|
||||||
--app:console|gui|lib|staticlib
|
--app:console|gui|lib|staticlib
|
||||||
generate a console app|GUI app|DLL|static library
|
generate a console app|GUI app|DLL|static library
|
||||||
-r, --run run the compiled program with given arguments
|
-r, --run run the compiled program with given arguments
|
||||||
--advanced show advanced command line switches
|
--fullhelp show all command line switches
|
||||||
-h, --help show this help
|
-h, --help show this help
|
||||||
|
|
||||||
Note, single letter options that take an argument require a colon. E.g. -p:PATH.
|
Note, single letter options that take an argument require a colon. E.g. -p:PATH.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue