]> git.cworth.org Git - notmuch/commit
cli: make the command line parser's errors more informative.
authorMark Walters <markwalters1009@gmail.com>
Tue, 5 Jun 2012 14:36:36 +0000 (15:36 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Sep 2012 02:03:36 +0000 (23:03 -0300)
commitab1487363edec7e0d89157b69634703beab622dc
treeb713e31d89722a1effa403334f65d42372ee1a3d
parent8dd4e9770ec12de9b2e6fc53259375b2d1720f38
cli: make the command line parser's errors more informative.

Previously, the cli parser was a little erratic in what errors it
reported and would fail silently in many cases (for example, when no
argument was passed to an integer option). This was particularly
annoying as the user could not (easily) tell whether the command
failed or just there were no search results.

This patch tries to make the handling consistent and return a helpful
error message in all cases.
command-line-arguments.c