Panic over invalid memory address or nil pointer dereference on invalid subcommand
Sam-Izdat opened this issue · 4 comments
Sam-Izdat commented
There appears to be a slight problem right here. I haven't tried to really tree this one, but it seems, if a bad subcommand name is given by the user, subcmd
references no SubCommand
so calling subcmd.errf()
gives go a conniption fit before it can proceed with the error handling.
jwaldrip commented
@Sam-Izdat I have a fix that will be coming out in the next release later today. Thanks for finding this.
jwaldrip commented
Fixed
Sam-Izdat commented
@jwaldrip Sweet! Thanks for making this library available. It's really made my life a lot easier.
jwaldrip commented
@Sam-Izdat glad you like it!