debug
debug copied to clipboard
commands: fix mismatch in argument error reporting
It was parsing args[0]
but reporting an error on args[1]
,
which might panic and obscure the error.
Also do the initial parsing earlier, to save effort reading the core if we can't proceed.