Skip to content

Commit

Permalink
docs(cli): improve --gas flag description (cosmos#12913) (cosmos#12965)
Browse files Browse the repository at this point in the history
* docs(cli): improve --gas flag description

* Update client/flags/flags.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* fix sprintf

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
(cherry picked from commit f430528)

Co-authored-by: Robert Zaremba <robert@zaremba.ch>
  • Loading branch information
2 people authored and JeancarloBarrios committed Sep 28, 2024
1 parent b95f03d commit 5301d1f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,8 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
cmd.Flags().String(FlagFeeAccount, "", "Fee account pays fees for the transaction instead of deducting from the signer")

// --gas can accept integers and "auto"
f.String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically. Note: %q option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of %q. (default %d)",
cmd.Flags().String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically. Note: %q option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of %q. (default %d)",
GasFlagAuto, GasFlagAuto, FlagFees, DefaultGasLimit))

AddKeyringFlags(f)
}

// AddKeyringFlags sets common keyring flags
func AddKeyringFlags(flags *pflag.FlagSet) {
flags.String(FlagKeyringDir, "", "The client Keyring directory; if omitted, the default 'home' directory will be used")
flags.String(FlagKeyringBackend, DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test|memory)")
}

// AddPaginationFlagsToCmd adds common pagination flags to cmd
Expand Down

0 comments on commit 5301d1f

Please sign in to comment.