in https://github.com/google/argh/pull/129, the implementation would re-parse the command by forwarding the entire args into the optional subcommand if exists. Optimise the code so that a single pass would process the entire chain.