diff --git a/README.md b/README.md index 3772f9d..3565a1b 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ To import an existing private key into KMS: ```bash $ ape aws kms import KeyAlias Enter your private key: -SUCCESS (ape-aws): Key imported successfully with ID: +SUCCESS: Key imported successfully with ID: ``` You can also import a private key from a file (from hex or bytes): @@ -64,7 +64,7 @@ You can also import a private key from a file (from hex or bytes): ```bash $ ape aws kms import KeyAlias --private-key INFO: Reading private key from -SUCCESS (ape-aws): Key imported successfully with ID: +SUCCESS: Key imported successfully with ID: ``` You can import using a mnemonic phrase as well: diff --git a/ape_aws/kms/_cli.py b/ape_aws/kms/_cli.py index 72610c1..418f84c 100644 --- a/ape_aws/kms/_cli.py +++ b/ape_aws/kms/_cli.py @@ -21,7 +21,6 @@ def kms(): "administrators", multiple=True, help="Apply key policy to a list of administrators if applicable, ex. -a ARN1, -a ARN2", - metavar="list[ARN]", ) @click.option( "-u", @@ -29,7 +28,6 @@ def kms(): "users", multiple=True, help="Apply key policy to a list of users if applicable, ex. -u ARN1, -u ARN2", - metavar="list[ARN]", ) @click.option( "-d", @@ -71,7 +69,6 @@ def create_key( "private_key_path", type=click.Path(), help="The private key you intend to import", - metavar="Path", ) @click.option( "-a", @@ -79,7 +76,6 @@ def create_key( "administrators", multiple=True, help="Apply key policy to a list of administrators if applicable, ex. -a ARN1, -a ARN2", - metavar="ARN", ) @click.option( "-u", @@ -87,14 +83,12 @@ def create_key( "users", multiple=True, help="Apply key policy to a list of users if applicable, ex. -u ARN1, -u ARN2", - metavar="list[ARN]", ) @click.option( "-d", "--description", "description", help="The description of the key you intend to create.", - metavar="str", ) @click.option( "--use-mnemonic", @@ -106,7 +100,7 @@ def create_key( "--hd-path", "hd_path", help="The hierarchical deterministic path to derive the key from", - metavar="str", + default=ETHEREUM_DEFAULT_PATH, ) @click.argument("alias_name") def import_key( @@ -127,8 +121,6 @@ def import_key( private_key = private_key_path.read_text().strip() elif import_from_mnemonic: - if not hd_path: - hd_path = ETHEREUM_DEFAULT_PATH mnemonic = click.prompt("Enter your mnemonic phrase", hide_input=True) EthAccount.enable_unaudited_hdwallet_features() account = EthAccount.from_mnemonic(mnemonic, account_path=hd_path)