]> git.notmuchmail.org Git - notmuch/commitdiff
cli: fix top level --help combined with other options
authorJani Nikula <jani@nikula.org>
Sun, 8 Mar 2015 16:18:54 +0000 (18:18 +0200)
committerDavid Bremner <david@tethera.net>
Wed, 11 Mar 2015 07:07:41 +0000 (08:07 +0100)
If the top level --help is combined with other options, help
fails. For example:

    $ notmuch --version --help

    Sorry, --help is not a known command. There's not much I can do to help.

Fix this by adjusting argc and argv appropriately. The help command
ignores argv[0] anyway, so we don't have to set it to "help".


No differences found