Skip to content

Commit 41cb649

Browse files
committed
Support requesting no metrics in CLI tools
The service will soon support requesting states without a metric. This adds support for this feature in the CLI tool. Signed-off-by: cwasicki <[email protected]>
1 parent 7abbc9c commit 41cb649

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
## New Features
1212

13+
* The CLI tool supports requesting component states without metrics.
1314

1415
## Bug Fixes
1516

src/frequenz/client/reporting/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ def main() -> None:
2929
parser.add_argument(
3030
"--metrics",
3131
type=str,
32-
nargs="+",
32+
nargs="*",
3333
choices=[e.name for e in Metric],
3434
help="List of metrics to process",
35-
required=True,
35+
required=False,
36+
default=[],
3637
)
3738
parser.add_argument(
3839
"--states",

0 commit comments

Comments
 (0)