Subject: | Usage error has surplus information |
Hi there,
I feel the error for incorrect usage is a little strict and produces unnecessary output.
$ ./bin/myapp.ctl
Must be called with an action [start|stop|restart|status|show_warnings] at
/var/home/alister/perl5/lib/perl5/Daemon/Control.pm line 421.
# Daemon/Control.pm:421
- die "Must be called with an action [start|stop|restart|status|show_warnings]";
+ die $0. " must be called with an action [start|stop|restart|status|show_warnings]\n";
Produces much nicer ouput.
./bin/webapp.ctl must be called with an action [start|stop|restart|status|show_warnings]
Cheers,