Patchworkβ Fix formatting for restore and dump help documentation.

login
register
about
Submitter Jameson Graef Rollins
Date 2011-10-31 19:01:25
Message ID <1320087685-19782-1-git-send-email-jrollins@finestructure.net>
Download mbox | patch
Permalink /patch/1440/
State New
Headers show

Comments

Jameson Graef Rollins - 2011-10-31 19:01:25
This normalizes the code and output formatting here to look like the
rest of the help output.
---
 notmuch.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)
David Bremner - 2011-11-01 00:19:56
On Mon, 31 Oct 2011 12:01:25 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
> This normalizes the code and output formatting here to look like the
> rest of the help output.

Thanks. I rebased that into the corresponding patch in branch nmbug at

        git://pivot.cs.unb.ca/notmuch.git

d

Patch

diff --git a/notmuch.c b/notmuch.c
index 3a51fee..14e5ad5 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -390,8 +390,8 @@  static command_t commands[] = {
       "\tdatabase will be generated. A \"--\" argument instructs\n"
       "\tnotmuch that the remaining arguments are search terms.\n"
       "\n"
-      "\tSee \"notmuch help search-terms\" for the search-term syntax.\n"      
- },
+      "\tSee \"notmuch help search-terms\" for details of the search\n"
+      "\tterms syntax." },
     { "restore", notmuch_restore_command,
       "[--accumulate] [<filename>]",
       "Restore the tags from the given dump file (see 'dump').",
@@ -401,17 +401,17 @@  static command_t commands[] = {
       "\tSo if you've previously been using sup for mail, then the\n"
       "\t\"notmuch restore\" command provides you a way to import\n"
       "\tall of your tags (or labels as sup calls them).\n"
-      "\tSupported options for restore include\n"
       "\n"
-      "\t    --accumulate\n"
-      "\t      The union of the existing and new tags is applied, instead of\n"
-      "\t      replacing each message's tags as they are read  in  from  the\n"
-      "\t      dump file.\n"
+      "\tSupported options for restore include:\n"
+      "\n"
+      "\t--accumulate\n"
+      "\t\tThe union of the existing and new tags is applied, instead of\n"
+      "\t\treplacing each message's tags as they are read  in  from  the\n"
+      "\t\tdump file.\n"
       "\n"
-      "\t    --match=<regex>\n"
-      "\t      Add or delete only tags matching <regex>.  Other tags in the\n"
-      "\t      input (or the database) are ignored.\n"
-    },
+      "\t--match=<regex>\n"
+      "\t\tAdd or delete only tags matching <regex>.  Other tags in the\n"
+      "\t\tinput (or the database) are ignored." },
     { "config", notmuch_config_command,
       "[get|set] <section>.<item> [value ...]",
       "Get or set settings in the notmuch configuration file.",