diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-12 18:40:40 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-13 17:39:44 +0100 |
commit | 3eae7ce82869dd2c313496913bb94438dd0177a9 (patch) | |
tree | b409a90240f11871e0f0fffab81dbfcbf206240f /src/io.c | |
parent | c58087d5914322ab8f693729605a9508d67bb676 (diff) | |
download | calcurse-3eae7ce82869dd2c313496913bb94438dd0177a9.zip |
Add --list-imported command line option
When this option is used together with -i/--import, the object
identifiers of imported objects are printed to stdout.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1154,7 +1154,7 @@ static FILE *get_import_stream(enum import_type type) * A temporary log file is created in /tmp to store the import process report, * and is cleared at the end. */ -void io_import_data(enum import_type type, const char *stream_name) +void io_import_data(enum import_type type, const char *stream_name, int list) { const char *proc_report = _("Import process report: %04d lines read"); @@ -1195,7 +1195,7 @@ void io_import_data(enum import_type type, const char *stream_name) } if (type == IO_IMPORT_ICAL) - ical_import_data(stream, log->fd, &stats.events, + ical_import_data(stream, log->fd, list, &stats.events, &stats.apoints, &stats.todos, &stats.lines, &stats.skipped); |