From 16ae51105e5f4628d483826e859b1f5acfa5f14c Mon Sep 17 00:00:00 2001 From: DavHau Date: Tue, 2 Apr 2024 14:31:20 +0700 Subject: [PATCH] cli/secrets: show hint in --help on how to retrieve a key --- pkgs/clan-cli/clan_cli/secrets/users.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_cli/secrets/users.py b/pkgs/clan-cli/clan_cli/secrets/users.py index 7889a009..089221ed 100644 --- a/pkgs/clan-cli/clan_cli/secrets/users.py +++ b/pkgs/clan-cli/clan_cli/secrets/users.py @@ -116,7 +116,9 @@ def register_users_parser(parser: argparse.ArgumentParser) -> None: add_parser.add_argument("user", help="the name of the user", type=user_name_type) add_parser.add_argument( "key", - help="public key or private key of the user", + help="public key or private key of the user." + "Execute 'clan secrets key --help' on how to retrieve a key." + "To fetch an age key from an SSH host key: ssh-keyscan | nix shell nixpkgs#ssh-to-age -c ssh-to-age", type=public_or_private_age_key_type, ) add_parser.set_defaults(func=add_command)