When a large list of events was obtained, only the first query was correct. Subsequent queries used default parameters, so the resulting list had the earliest events of the calendar, etc. (The Google API may have changed since the affected code was written.)
An illustration:
$ pip install --upgrade git+https://github.com/insanum/gcalcli
$ gcalcli agenda --tsv 2021-01-01 2021-12-31 | head -n3 | cut -f1-4
start_date start_time end_date end_time
2012-05-17 21:00 2012-05-17 22:00 # the very first event in my default calendar
2012-07-17 11:00 2012-07-17 12:00
$ pip install --upgrade git+https://github.com/kbulygin/gcalcli
$ gcalcli agenda --tsv 2021-01-01 2021-12-31 | head -n3 | cut -f1-4
start_date start_time end_date end_time
2020-12-31 20:00 2021-01-01 03:00 # correct
2021-01-01 00:47 2021-01-01 00:47
When a large list of events was obtained, only the first query was correct. Subsequent queries used default parameters, so the resulting list had the earliest events of the calendar, etc. (The Google API may have changed since the affected code was written.)
An illustration: