Please sign in to comment.
Notice that we override Commander::Command#parse_options_and_call_procs - in particular, we add '--help' as a valid command option when '--h' is passed. - note that '--h' exists in @args for the present RHC::CommandRunner, but it is not removed from @args in #run!. - #run! calls Command#run, which ends up calling Command#parse_options_and_call_procs, which adds '--help' again, since '--h' was not removed from @args, and thus passed back to parse_options_and_call_procs. - Infinite recursion ensues. - So, we need to defend ourselves by removing all potential matches for the command option '--help'.
- Loading branch information...