aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-27 15:38:16 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-27 15:38:16 -0700
commit65f2e61f28a0f5c5dc38dd3cf8a1de023934b330 (patch)
tree682776ed00f2b2dfd5d7c79115aa8a7efa30497a /notmuch.c
parent49d90ede87e355b086618c647d19e696b9f7069a (diff)
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.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c19
1 files changed, 15 insertions, 4 deletions
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 <section>.<item>",
- "Get settings from the notmuch configuration file.",
+ "[get|set] <section>.<item> [value ...]",
+ "Get or set settings in the notmuch configuration file.",
+ " config get <section>.<item>\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 <section>.<item> [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,
"[<command>]",
"This message, or more detailed help for the named command.",