From 581e0050e0242654fb3f86c5018bbd8682b3f25f Mon Sep 17 00:00:00 2001 From: Guillaume Fieni Date: Wed, 27 Mar 2024 21:11:11 +0100 Subject: [PATCH] refactor(cli): Improve k8s pre-processor cli args help text --- src/powerapi/cli/common_cli_parsing_manager.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/powerapi/cli/common_cli_parsing_manager.py b/src/powerapi/cli/common_cli_parsing_manager.py index e76ee587..1de7d032 100644 --- a/src/powerapi/cli/common_cli_parsing_manager.py +++ b/src/powerapi/cli/common_cli_parsing_manager.py @@ -406,28 +406,36 @@ def __init__(self): subparser_k8s_pre_processor = SubgroupConfigParsingManager("k8s") subparser_k8s_pre_processor.add_argument( - "a", "api-mode", help_text="k8s api mode (local, manual or cluster)" + "a", + "api-mode", + help_text="Kubernetes API mode (local, manual or cluster)", + default_value='cluster' ) subparser_k8s_pre_processor.add_argument( "k", "api-key", - help_text="API key authorization required for k8s manual configuration", + help_text="Kubernetes Bearer Token (only for manual API mode)", ) subparser_k8s_pre_processor.add_argument( "h", "api-host", - help_text="host required for k8s manual configuration", + help_text="Kubernetes API host (only for manual API mode)", ) subparser_k8s_pre_processor.add_argument( "p", "puller", - help_text="target puller for the pre-processor", + help_text="Name of the puller to attach the pre-processor to", + ) + + subparser_k8s_pre_processor.add_argument( + "n", + "name", + help_text="Name of the pre-processor" ) - subparser_k8s_pre_processor.add_argument("n", "name", help_text="") self.add_subgroup_parser( subgroup_name="pre-processor", subgroup_parser=subparser_k8s_pre_processor