jnioche / carbonintensity-api

A simple Rust library to retrieve data from https://api.carbonintensity.org.uk/
Apache License 2.0
9 stars 0 forks source link

Simplify CLI arguments #8

Closed jnioche closed 9 months ago

jnioche commented 9 months ago

Since a postcode starts with a letter and a region is a numerical value, it would possible to remove the subcommand (postcode region) altogether and determine what the user wants from the input itself. Additionally, passing nothing at all could return data for the country as a whole.