Skip to content

Commit d6d09a4

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.
1 parent 7abbc9c commit d6d09a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)