unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] cli: enable notmuch --help command
@ 2015-06-15 15:46 David Bremner
  2015-07-28 18:33 ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2015-06-15 15:46 UTC (permalink / raw)
  To: notmuch

This functionality seems to have been undocumented, if it ever
existed. Document it now.
---
 doc/man1/notmuch.rst | 4 +++-
 notmuch.c            | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/man1/notmuch.rst b/doc/man1/notmuch.rst
index ae0461a..87fb7bc 100644
--- a/doc/man1/notmuch.rst
+++ b/doc/man1/notmuch.rst
@@ -39,8 +39,10 @@ OPTIONS
 
 Supported global options for ``notmuch`` include
 
-    ``--help``
+    ``--help`` [command-name]
         Print a synopsis of available commands and exit.
+        With an optional command name, show the man page
+        for that subcommand.
 
     ``--version``
         Print the installed version of notmuch, and exit.
diff --git a/notmuch.c b/notmuch.c
index c528dce..9580c3f 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -381,11 +381,11 @@ main (int argc, char *argv[])
 	goto DONE;
     }
 
-    notmuch_process_shared_options (NULL);
-
     if (opt_index < argc)
 	command_name = argv[opt_index];
 
+    notmuch_process_shared_options (command_name);
+
     command = find_command (command_name);
     if (!command) {
 	fprintf (stderr, "Error: Unknown command '%s' (see \"notmuch help\")\n",
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] cli: enable notmuch --help command
  2015-06-15 15:46 [PATCH] cli: enable notmuch --help command David Bremner
@ 2015-07-28 18:33 ` David Bremner
  2015-07-30  6:33   ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2015-07-28 18:33 UTC (permalink / raw)
  To: notmuch

David Bremner <david@tethera.net> writes:

> This functionality seems to have been undocumented, if it ever
> existed. Document it now.

Apparently this is a patch that fixes our currently broken subtest. That
might have even been why I wrote it. I'll push (a whitespace cleaned up
version of) this unless I hear some objections.

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cli: enable notmuch --help command
  2015-07-28 18:33 ` David Bremner
@ 2015-07-30  6:33   ` David Bremner
  0 siblings, 0 replies; 3+ messages in thread
From: David Bremner @ 2015-07-30  6:33 UTC (permalink / raw)
  To: notmuch

David Bremner <david@tethera.net> writes:

> David Bremner <david@tethera.net> writes:
>
>> This functionality seems to have been undocumented, if it ever
>> existed. Document it now.
>
> Apparently this is a patch that fixes our currently broken subtest. That
> might have even been why I wrote it. I'll push (a whitespace cleaned up
> version of) this unless I hear some objections.

As threatened, I pushed this.

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-30  6:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-15 15:46 [PATCH] cli: enable notmuch --help command David Bremner
2015-07-28 18:33 ` David Bremner
2015-07-30  6:33   ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).