diff --git a/gcalcli/argparsers.py b/gcalcli/argparsers.py index 478f28a..9ed634d 100644 --- a/gcalcli/argparsers.py +++ b/gcalcli/argparsers.py @@ -715,7 +715,7 @@ def get_argument_parser(): default_cmd = 'notify-send -u critical -i appointment-soon -a gcalcli %s' remind = sub.add_parser( 'remind', - parents=[calendars_parser], + parents=[calendars_parser, output_parser], help='execute command if event occurs within time', description='Execute if event occurs within ; the %s ' 'in is replaced with event start time and title text.' diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index aa63820..3abd559 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -1541,6 +1541,9 @@ def Remind(self, minutes, command, use_reminders=False): if event['s'] < self.now: continue + if self.options['ignore_declined'] and self._DeclinedEvent(event): + continue + # not sure if 'reminders' always in event if use_reminders and 'reminders' in event \ and 'overrides' in event['reminders']: