earthobservations / wetterdienst

Open weather data for humans.
https://wetterdienst.readthedocs.io/
MIT License
349 stars 54 forks source link

Make CLI parameter "--period" optional #165

Closed amotl closed 3 years ago

amotl commented 3 years ago

Hi there,

I just learned that DWDStationRequest became more advanced and can now extrapolate all available periods when this parameter gets omitted [1], effectively making it optional.

The CLI might adjust to this change accordingly.

With kind regards, Andreas.

[1] https://github.com/earthobservations/wetterdienst/blob/v0.7.0/wetterdienst/api.py#L105-L120

gutzbenj commented 3 years ago

Dear Andreas,

I actually never have thought of this! At the moment the user either has to set period_type or start_date and end_date. However we might change that accordingly so if neither period_type nor start_date and end_date are given, simply all period_types are used!