From 886b2b97f10da6b74c8c585a23558e78b5900904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noah=20Bayindirli=20=F0=9F=A5=82?= Date: Thu, 2 May 2024 16:03:33 -0400 Subject: [PATCH] add defaultDescription to yargs --key option (#3697) ### Description * Adds defaultDescription to yargs --key option to avoid printing sensitive data ### Drive-by changes * None ### Related issues * None ### Backward compatibility * Yes ### Testing * Manual --- .changeset/wet-ghosts-turn.md | 5 +++++ typescript/cli/src/commands/options.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/wet-ghosts-turn.md diff --git a/.changeset/wet-ghosts-turn.md b/.changeset/wet-ghosts-turn.md new file mode 100644 index 0000000000..f9e1f382a4 --- /dev/null +++ b/.changeset/wet-ghosts-turn.md @@ -0,0 +1,5 @@ +--- +'@hyperlane-xyz/cli': patch +--- + +Adds defaultDescription to yargs --key option. diff --git a/typescript/cli/src/commands/options.ts b/typescript/cli/src/commands/options.ts index 6e33a82db3..8d628b5957 100644 --- a/typescript/cli/src/commands/options.ts +++ b/typescript/cli/src/commands/options.ts @@ -45,6 +45,7 @@ export const keyCommandOption: Options = { Dry-run: An address to simulate transaction signing on a forked network`, alias: 'k', default: ENV.HYP_KEY, + defaultDescription: 'process.env.HYP_KEY', }; /* Command-specific options */