[Ml-yokadi] Introducing BadUsageException
Sébastien Renard
Sebastien.Renard at digitalfox.org
Sun Feb 21 23:47:32 CET 2010
Le dimanche 21 février 2010 22:53:42, Aurélien Gâteau a écrit :
> Hi,
>
> I just did some work fixing some unit-test breakage I created a few
> commits ago :/. While doing so, I realized bad usage (ie, wrong command
> line arguments) was not consistently handled, so I introduced a new
> exception: BadUsageException, which can be raised when the command does
> not contain correct arguments. It is caught by YokadiCmd, which will
> display the exception message as well as the command usage.
Good idea !
--
Sébastien
More information about the Ml-yokadi
mailing list