Dr. André Müller
Dr. André Müller
I think the main problem is here: https://github.com/spf13/cobra/blob/e94f6d0dd9a5e5738dca6bce03c4b1207ffbc0ec/command.go#L925-L927 If we could just return another error code instead of `flag.ErrHelp` lets say `ErrUnknownSubcommand` then the outer error would be forwarded in...
Ok. What about a further flag in the `Command` struct such like ```golang type Command struct { // everything else ... ErrorOnUnknownSubcommand bool } ``` Default is false - and...
Hi there. Currently I have a problem with the medium api. Seems not to work anymore. But it is a very good idea to use directly markdown. The pandoc processing...
Hmm. Cool feature. I currently could not find how to use that from the api. Currently I have the markdown -> pandoc -> html -> medium.com chain. I will have...
Hey @marckhouzam. I tried to include your proposals in the code. Actually one linting issue fixed which was not mine. However, I removed the common error "class" ErrUnknownSubcommand. Would it...
Yes would be interesting! What do you think @marckhouzam? Is there more work to be done on upstream Cobra before this feature can be added - regarding this error handling...