clan/secrets: improve naming of secret key
Change the secret key help wording to: `secret-name`, to convey that it is the key and not the value. Fixes: #1696
This commit is contained in:
@@ -163,7 +163,10 @@ def remove_command(args: argparse.Namespace) -> None:
|
|||||||
|
|
||||||
def add_secret_argument(parser: argparse.ArgumentParser, autocomplete: bool) -> None:
|
def add_secret_argument(parser: argparse.ArgumentParser, autocomplete: bool) -> None:
|
||||||
secrets_parser = parser.add_argument(
|
secrets_parser = parser.add_argument(
|
||||||
"secret", help="the name of the secret", type=secret_name_type
|
"secret",
|
||||||
|
metavar="secret-name",
|
||||||
|
help="the name of the secret",
|
||||||
|
type=secret_name_type,
|
||||||
)
|
)
|
||||||
if autocomplete:
|
if autocomplete:
|
||||||
add_dynamic_completer(secrets_parser, complete_secrets)
|
add_dynamic_completer(secrets_parser, complete_secrets)
|
||||||
|
|||||||
Reference in New Issue
Block a user