From 2da8d7995848e77b8f5c94abf5b08bb2aaddf614 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sat, 28 Sep 2024 10:21:47 -0600 Subject: [PATCH] Add --use-legacy-import hint message in `import` partial-failure output (#783) Helps #730 (by making workaround more discoverable). --- gcalcli/gcal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index df37a9e..7db7ac5 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -1652,5 +1652,12 @@ def ImportICS(self, verbose=False, dump=False, reminders=None, f"Dumped {len(failed_events)} failed events to " f"{ics_dump_path!s}.\n" ) + self.printer.msg( + "\n" + "Note: you can try reprocessing this file with `gcalcli " + "import --use-legacy-import` to work around some failure " + "causes (but with potentially noisier update notifications)." + "\n", + ) return True