From 65f2e61f28a0f5c5dc38dd3cf8a1de023934b330 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Oct 2010 15:38:16 -0700 Subject: notmuch config: Allow for new "notmuch config set" in addition to get It is now possible to set configuration items from the command-line in a manner quite similar to the support for querying configuration items. --- notmuch.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'notmuch.c') diff --git a/notmuch.c b/notmuch.c index f9acfa36..326aa4c8 100644 --- a/notmuch.c +++ b/notmuch.c @@ -322,19 +322,30 @@ command_t commands[] = { "\tmessage specified by the search terms does not include a\n" "\tpart with the specified \"id\" there will be no output." }, { "config", notmuch_config_command, - "get
.", - "Get settings from the notmuch configuration file.", + "[get|set]
. [value ...]", + "Get or set settings in the notmuch configuration file.", + " config get
.\n" + "\n" "\tThe value of the specified configuration item is printed\n" "\tto stdout. If the item has multiple values, each value\n" "\tis separated by a newline character.\n" "\n" - "\tAvailable configuration items include at least" + "\tAvailable configuration items include at least\n" "\n" "\t\tdatabase.path\n" "\t\tuser.name\n" "\t\tuser.primary_email\n" "\t\tuser.other_email\n" - "\t\tnew.tags\n" }, + "\t\tnew.tags\n" + "\n" + " config set
. [value ...]\n" + "\n" + "\tThe specified configuration item is set to the given value.\n" + "\tTo specify a multiple-value item, provide each value as\n" + "\ta separate command-line argument.\n" + "\n" + "\tIf no values are provided, the specified configuration item\n" + "\twill be removed from the configuration file." }, { "help", notmuch_help_command, "[]", "This message, or more detailed help for the named command.", -- cgit v1.2.3