summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2019-09-10 13:33:40 +0000
committerTobias Brox <tobias@redpill-linpro.com>2019-09-10 13:33:40 +0000
commita6828d50030dff637e02b58dd4eaf5daf442401d (patch)
tree8913796b169f5d081d363808a0dd6ecc774b4483
parenteb4c86975c47cb1098b1f066fb919e937b485180 (diff)
downloadcalendar-cli-a6828d50030dff637e02b58dd4eaf5daf442401d.zip
ref https://github.com/tobixen/calendar-cli/issues/56 fix nice error messages if config is missing. The previous fix was too aggressive
-rwxr-xr-xcalendar-cli.py4
1 files 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
""")