fix: args bug with CLI

This commit is contained in:
tydeu 2021-09-05 19:47:13 -04:00
parent d6d395619f
commit f92afee9b4

View file

@ -126,7 +126,6 @@ def processArgs : CliM PUnit := do
if (← getWantsHelp) then IO.println usage else
throw <| IO.userError "expected command"
| some cmd =>
let args ← collectArgs
if (← getWantsHelp) then IO.println (help cmd) else
command cmd