aboutsummaryrefslogtreecommitdiff
path: root/notmuch-dump.c
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2012-08-03 23:23:11 -0300
committerDavid Bremner <bremner@debian.org>2012-08-06 08:52:33 -0300
commit760e17488e6b11299f2971cf879b109b84816d14 (patch)
tree1c924c3c063127a6b11cee39e5b4f408f18ca0ee /notmuch-dump.c
parentddb009519d24ca6cae64608f2d4a93ca6e78d80a (diff)
notmuch-dump: remove deprecated positional argument for output file
The syntax --output=filename is a smaller change than deleting the output argument completely, and conceivably useful e.g. when running notmuch under a debugger.
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index 3743214..d8186fb 100644
--- a/notmuch-dump.c
+++ b/notmuch-dump.c
@@ -44,7 +44,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
int opt_index;
notmuch_opt_desc_t options[] = {
- { NOTMUCH_OPT_POSITION, &output_file_name, 0, 0, 0 },
+ { NOTMUCH_OPT_STRING, &output_file_name, "output", 'o', 0 },
{ 0, 0, 0, 0, 0 }
};
@@ -56,7 +56,6 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])
}
if (output_file_name) {
- fprintf (stderr, "Warning: the output file argument of dump is deprecated.\n");
output = fopen (output_file_name, "w");
if (output == NULL) {
fprintf (stderr, "Error opening %s for writing: %s\n",