From 705bf0257af3555baf8de83ec7a29971d448a8a8 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 27 Aug 2024 17:15:56 +0530 Subject: [PATCH] Add short help alias --- README.md | 4 +++- src/index.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b21814..92abd82 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ services: - `gas` config ignored - uses `auto` fee calculation using gas estimation with default multiplier value from `registry-sdk` + - tx fails mid-execution if it runs out of given gas - Fees set to a `X` (without `alnt` suffix), gas price set to `Yalnt`: ```bash @@ -116,6 +117,7 @@ services: - `gas` config ignored - uses `auto` fee calculation using gas estimation with `fees` as the multiplier + - tx fails mid-execution if it runs out of given gas, can be retried with a higher gas estimation multiplier (`fees`) - Fees and gas price both not set: ```bash @@ -132,7 +134,7 @@ services: Gas price must be set in the client options when auto gas is used. ``` -- The `gas`, `fees` and `gasPrice` can be set to some default values in the config as shown above, and can be overriden for each command using the `--gas`, `--fees` and `--gasPrice` arguments +- The `gas`, `fees` and `gasPrice` can be set to some default values in the config as shown above, and can be overriden for each command using the `--gas`, `--fees` and `--gasPrice` arguments: ```bash # Example: diff --git a/src/index.ts b/src/index.ts index 9b5b473..7999373 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,4 +26,5 @@ yargs(hideBin(process.argv)) .commandDir('cmds') .demandCommand() .help() + .alias('h', 'help') .argv;