Exp

usage: exp [-i {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}]
           [-d {2022-02-18,2022-02-25,2022-03-04,2022-03-11,2022-03-18,2022-03-25,2022-04-01,2022-04-14,2022-05-20,2022-06-17,2022-07-15,2022-08-19,2022-09-16,2022-10-21,2022-11-18,2022-12-16,2023-01-20,2023-03-17,2023-06-16,2023-09-15,2024-01-19,}] [-h]

See and set the expiration dates.

optional arguments:
  -i {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}, --index {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}
                        Select index for expiry date. (default: -1)
  -d {2022-02-18,2022-02-25,2022-03-04,2022-03-11,2022-03-18,2022-03-25,2022-04-01,2022-04-14,2022-05-20,2022-06-17,2022-07-15,2022-08-19,2022-09-16,2022-10-21,2022-11-18,2022-12-16,2023-01-20,2023-03-17,2023-06-16,2023-09-15,2024-01-19,}, --date {2022-02-18,2022-02-25,2022-03-04,2022-03-11,2022-03-18,2022-03-25,2022-04-01,2022-04-14,2022-05-20,2022-06-17,2022-07-15,2022-08-19,2022-09-16,2022-10-21,2022-11-18,2022-12-16,2023-01-20,2023-03-17,2023-06-16,2023-09-15,2024-01-19,}
                        Select date (YYYY-MM-DD) (default: )
  -h, --help            show this help message (default: False)

Example:

2022 Feb 16, 08:50 (✨) /stocks/options/ $ exp

Available expiry dates:
    0.  2022-02-18
    1.  2022-02-25
    2.  2022-03-04
    3.  2022-03-11
    4.  2022-03-18
    5.  2022-03-25
    6.  2022-04-01
    7.  2022-04-14
    8.  2022-05-20
    9.  2022-06-17
   10.  2022-07-15
   11.  2022-08-19
   12.  2022-09-16
   13.  2022-10-21
   14.  2022-11-18
   15.  2022-12-16
   16.  2023-01-20
   17.  2023-03-17
   18.  2023-06-16
   19.  2023-09-15
   20.  2024-01-19

2022 Feb 16, 08:50 (✨) /stocks/options/ $ exp 7
Expiration set to 2022-04-14