Cobra is very aggressive in wanting to manage the --help flag. This limits the possibility to pass --help to a proxied program.
This PR implements a mechanism to remove help from cobra's view and add it only we know it will do the right thing (on cobra command tree entries). If cobra does not manage help, it can be correctly forwarded to proxied commands.
Cobra is very aggressive in wanting to manage the
--help
flag. This limits the possibility to pass--help
to a proxied program.This PR implements a mechanism to remove help from cobra's view and add it only we know it will do the right thing (on cobra command tree entries). If cobra does not manage help, it can be correctly forwarded to proxied commands.
closes #18