From 3eae7ce82869dd2c313496913bb94438dd0177a9 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 12 Jan 2016 18:40:40 +0100 Subject: 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 --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 2639da5..e72a29d 100644 --- a/src/io.c +++ b/src/io.c @@ -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); -- cgit v1.2.3