Cosmetic improvements

This commit is contained in:
Zahary Karadjov 2019-11-11 15:05:22 +00:00
parent 9863f80e96
commit 4ad95ce154
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 2 deletions

View File

@ -305,7 +305,8 @@ proc describeOptions(help: var string,
proc showHelp(help: var string,
appInfo: HelpAppInfo,
activeCmds: openarray[CmdInfo]) =
helpOutput appInfo.copyrightBanner
if appInfo.copyrightBanner.len > 0:
helpOutput appInfo.copyrightBanner, "\p\p"
let cmd = activeCmds[^1]
@ -842,7 +843,7 @@ proc load*(Configuration: type,
if cmpIgnoreStyle(key, "help") == 0:
help.showHelp lazyHelpAppInfo(), activeCmds
elif version.len > 0 and cmpIgnoreStyle(key, "version") == 0:
help.helpOutput version
help.helpOutput version, "\p"
quit QuitSuccess
for kind, key, val in getopt(cmdLine):