Forbid "leftover" args to interactive commands

This commit is contained in:
Nikolay Yakimov
2015-12-20 06:41:34 +03:00
parent a1079f22a0
commit d0c53ec937
3 changed files with 5 additions and 8 deletions

View File

@@ -110,7 +110,7 @@ legacyInteractiveLoop symdbreq world = do
res <- flip gcatches interactiveHandlers $ do
pargs <- maybe (throw $ InvalidCommandLine $ Left cmdArg) return
$ parseArgsInteractive cmdArg
case fst pargs of
case pargs of
CmdFind symbol ->
lookupSymbol symbol =<< checkDb symdbreq =<< getDb symdbreq