[PATCH] Fix formatting for restore and dump help documentation.

Jameson Graef Rollins jrollins at finestructure.net
Mon Oct 31 12:01:25 PDT 2011


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(-)

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.",
-- 
1.7.7



More information about the notmuch mailing list