From d6d09a4bf9419227aa8ec850c51eb144ce9abb4e Mon Sep 17 00:00:00 2001 From: cwasicki <126617870+cwasicki@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:13:54 +0100 Subject: [PATCH] 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. --- src/frequenz/client/reporting/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frequenz/client/reporting/__main__.py b/src/frequenz/client/reporting/__main__.py index 296858f..f922ddd 100644 --- a/src/frequenz/client/reporting/__main__.py +++ b/src/frequenz/client/reporting/__main__.py @@ -29,10 +29,11 @@ def main() -> None: parser.add_argument( "--metrics", type=str, - nargs="+", + nargs="*", choices=[e.name for e in Metric], help="List of metrics to process", - required=True, + required=False, + default=[], ) parser.add_argument( "--states",