Skip to content

Commit

Permalink
docs(cli): improve --gas flag description (cosmos#12913)
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]>
  • Loading branch information
3 people authored Aug 18, 2022
1 parent 15417a2 commit f430528
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 @@ -129,7 +129,8 @@ func AddTxFlagsToCmd(cmd *cobra.Command) {
cmd.Flags().String(FlagChainID, "", "The network chain ID")

// --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 f430528

Please sign in to comment.