Give a nice error when no command is given
This commit is contained in:
parent
c3ee2d683b
commit
d66cc00750
2 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,8 @@ proc handleCmdLine() =
|
|||
# command line can overwite the config file's settings
|
||||
extccomp.initVars()
|
||||
processCmdLine(passCmd2, "")
|
||||
if options.command == "":
|
||||
rawMessage(errNoCommand, command)
|
||||
mainCommand()
|
||||
if optHints in gOptions and hintGCStats in gNotes: echo(GC_getStatistics())
|
||||
#echo(GC_getStatistics())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue