Prepares a resolved command by ensuring the remaining command string starts
with a subcommand name, adding a resolveNext function if the command isn't
the last one, and replacing the handler with a pass-through function if the
command won't be executed.
Prepares a resolved command by ensuring the remaining command string starts with a subcommand name, adding a
resolveNext
function if the command isn't the last one, and replacing the handler with a pass-through function if the command won't be executed.