add test for --eval; fix a minor bug (#16224)
This commit is contained in:
parent
9fa5826d62
commit
84f2ad3068
2 changed files with 7 additions and 0 deletions
|
|
@ -450,6 +450,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
|||
conf.projectIsCmd = true
|
||||
conf.cmdInput = arg # can be empty (a nim file with empty content is valid too)
|
||||
if conf.cmd == cmdNone:
|
||||
conf.command = "e"
|
||||
conf.setCmd cmdNimscript # better than `cmdCrun` as a default
|
||||
conf.implicitCmd = true
|
||||
of "path", "p":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue