From a6828d50030dff637e02b58dd4eaf5daf442401d Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Tue, 10 Sep 2019 13:33:40 +0000 Subject: ref https://github.com/tobixen/calendar-cli/issues/56 fix nice error messages if config is missing. The previous fix was too aggressive --- calendar-cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar-cli.py b/calendar-cli.py index effa704..805b47d 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -904,9 +904,9 @@ def main(): args = parser.parse_args(remaining_argv) if not args.nocaldav: - if not args.calendar_url: + if not args.calendar_url and not args.caldav_url: sys.stderr.write(""" -missing mandatory argument calendar_url +missing mandatory arguments ... either calendar_url or caldav_url needs to be set Have you set up a config file? Read the doc or ... ... use the --interactive-config option to create a config file """) -- cgit v1.2.3