jwaldrip/odin

Panic over invalid memory address or nil pointer dereference on invalid subcommand

Sam-Izdat opened this issue · 4 comments

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.

@Sam-Izdat I have a fix that will be coming out in the next release later today. Thanks for finding this.

#4

Fixed

@jwaldrip Sweet! Thanks for making this library available. It's really made my life a lot easier.

@Sam-Izdat glad you like it!