Skip to content

Commit

Permalink
add defaultDescription to yargs --key option (#3697)
Browse files Browse the repository at this point in the history
### Description

* Adds defaultDescription to yargs --key option to avoid printing
sensitive data

### Drive-by changes

* None

### Related issues

* None

### Backward compatibility

* Yes

### Testing

* Manual
  • Loading branch information
nbayindirli authored and ltyu committed May 3, 2024
1 parent c820d15 commit 886b2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-ghosts-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': patch
---

Adds defaultDescription to yargs --key option.
1 change: 1 addition & 0 deletions typescript/cli/src/commands/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 886b2b9

Please sign in to comment.