refactor Trollop::die into Trollop::Parser#die and fix a bug
authorWilliam Morgan <wmorgan@masanjin.net>
Tue, 6 Apr 2010 00:13:46 +0000 (20:13 -0400)
committerWilliam Morgan <wmorgan@masanjin.net>
Tue, 6 Apr 2010 00:19:59 +0000 (20:19 -0400)
commitb021589fb0266ec081b548d798fa38316f154185
tree035e2cd861df6bfaabce7fc218c99d92153540de
parent0e866781b03bc3f8fa3fcb5cc3b51e393824a3eb
refactor Trollop::die into Trollop::Parser#die and fix a bug

Trollop::die was depending on a magic @p variable to know which parser
to produce an error message for, which was removed in the last release.
Re-add this variable with a better name, improve the error handling, and
have the actual meat of the method be Parser#die
lib/trollop.rb