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 <[email protected]>

* fix sprintf

Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
(cherry picked from commit f430528)

Co-authored-by: Robert Zaremba <[email protected]>
  • Loading branch information
mergify[bot] and robert-zaremba authored Aug 19, 2022
1 parent f31c795 commit 7ee9e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
cmd.Flags().Bool(FlagAux, false, "Generate aux signer data instead of sending a tx")

// --gas can accept integers and "auto"
cmd.Flags().String(FlagGas, "", fmt.Sprintf("gas limit to set per-transaction; set to %q to calculate sufficient gas automatically (default %d)", GasFlagAuto, DefaultGasLimit))
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))
}

// AddPaginationFlagsToCmd adds common pagination flags to cmd
Expand Down

0 comments on commit 7ee9e6d

Please sign in to comment.