From f430528ebc4a5028804c85824c15d2a76d5fdb41 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Thu, 18 Aug 2022 22:48:08 +0200 Subject: [PATCH] docs(cli): improve --gas flag description (#12913) * docs(cli): improve --gas flag description * Update client/flags/flags.go Co-authored-by: Aleksandr Bezobchuk * fix sprintf Co-authored-by: Aleksandr Bezobchuk Co-authored-by: Julien Robert --- client/flags/flags.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/flags/flags.go b/client/flags/flags.go index 9164ab599d6a..d7761f05c019 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -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