dinitctl: give an error message if unrecognized option/command given.
authorDavin McCall <davmac@davmac.org>
Fri, 14 Sep 2018 20:12:02 +0000 (21:12 +0100)
committerDavin McCall <davmac@davmac.org>
Fri, 14 Sep 2018 20:12:02 +0000 (21:12 +0100)
commit1ef9df5249b5ffa4dc86c9e0c741a733afbf0ef4
treedfe5ece5fe96a0a49bb87a904d031c2cab0efb0c
parentd5ea816ef62e9ab75460a2067cd939f4fcb9fd4f
dinitctl: give an error message if unrecognized option/command given.

An unrecognized option was just exiting silently, and an unrecognized
command would print the help text. Now, print an appropriate error in
each case.
src/dinitctl.cc