Green-Software-Foundation/carbon-aware-sdk

[Bug]: quickstart args wrong

Closed this issue · 0 comments

Contact Details

just respond to issue, I'll get back to you :-)

What happened?

I followed the quickstart but came to this command which failed for me:

For example, to get emissions in the eastus and uksouth region between 2022-08-23 at 11:15am and 2022-08-23 at 11:20am, run: dotnet run -l eastus,uksouth -t 2022-08-23T11:15 --toTime 2022-08-23T11:20

Apparently, -t and --toTime have been replaced by -s and -e. Shall I submit a fix or am I missing something?

client

CLI

Relevant log output

dotnet run emissions -l eastus -s 2023-07-17T12:00 --toTime 2023-07-17T15:00
Unrecognized command or argument '--toTime'.
Unrecognized command or argument '2023-07-17T15:00'.

Description:
  Emissions command keyword to retrieve emissions data

Usage:
  caw emissions [options]

Options:
  -l, --location <location> (REQUIRED)  One or more named locations.
  -s, --start-time <start-time>         Start time of emissions data.
  -e, --end-time <end-time>             End time of emissions data.
  -b, --best                            Filter results down to the best (typically lowest) data point
  -a, --average                         Outputs the weighted average of all data points within the start and end time boundaries.
  -v, --verbose                         Provides more verbose debugging output.
  -?, -h, --help                        Show help and usage information

Code of Conduct

  • I agree to follow this project's Code of Conduct