mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
GF shell: restore the eh command to working order and document it
Also, when the command line parser fails, append the problematic command line to the error message "command not parsed".
This commit is contained in:
@@ -27,7 +27,7 @@ interpretCommandLine env line =
|
||||
case readCommandLine line of
|
||||
Just [] -> return ()
|
||||
Just pipes -> mapM_ (interpretPipe env) pipes
|
||||
Nothing -> putStrLnE "command not parsed"
|
||||
Nothing -> putStrLnE $ "command not parsed: "++line
|
||||
|
||||
interpretPipe env cs = do
|
||||
Piped v@(_,s) <- intercs cs void
|
||||
|
||||
Reference in New Issue
Block a user