From: Mark Walters Date: Tue, 5 Jun 2012 14:36:36 +0000 (+0100) Subject: cli: make the command line parser's errors more informative. X-Git-Tag: 0.15_rc1~256 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;ds=inline;h=ab1487363edec7e0d89157b69634703beab622dc;hp=ab1487363edec7e0d89157b69634703beab622dc;p=notmuch 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. ---