From: Jani Nikula Date: Sun, 3 Mar 2013 21:55:09 +0000 (+0200) Subject: cli: move config open/close to main() from subcommands X-Git-Tag: 0.16_rc1~187 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=4ef2106792439f5ade157b3ba3b8f7fa86fcb3ed;hp=4ef2106792439f5ade157b3ba3b8f7fa86fcb3ed cli: move config open/close to main() from subcommands This allows specifying config file as a top level argument to notmuch, and generally makes it possible to override config file options in main(), without having to touch the subcommands. If the config file does not exist, one will be created for the notmuch main command and setup and help subcommands. Help is special in this regard; the config is created just to avoid errors about missing config, but it will not be saved. This also makes notmuch config the talloc context for subcommands. ---