summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcalendar-cli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar-cli.py b/calendar-cli.py
index ec9adaa..e9a36a5 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -148,6 +148,8 @@ def find_calendar(caldav_conn, args):
calendars = caldav.Principal(caldav_conn).calendars()
if not calendars:
sys.stderr.write("no calendar url given and no default calendar found - can't proceed. You will need to create a calendar first")
+ if len(calendars) > 1:
+ sys.stderr.write("no calendar url given and several calendars found - refusing to select one at random. You will need to specify which one to use")
return caldav.Principal(caldav_conn).calendars()[0]
def _calendar_addics(caldav_conn, ics, uid, args):