chore(cli): apply google CLI Syntax for required and optional args (#1417)

* chore(cli): apply google CLI Syntax for required and optional args

* chore(cli): add changes in CHANGELOG

* chore(cli): fix link to PR in CHANGELOG

* chore(cli): fix args in feemarket

* chore(cli): update docs based on comments
This commit is contained in:
Tomas Guerra
2022-10-31 17:47:57 +00:00
committed by GitHub
parent 87f70c3b4e
commit fd91448fa7
6 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ func GetQueryCmd() *cobra.Command {
// GetStorageCmd queries a key in an accounts storage
func GetStorageCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "storage [address] [key]",
Use: "storage ADDRESS KEY",
Short: "Gets storage for an account with a given key and height",
Long: "Gets storage for an account with a given key and height. If the height is not provided, it will use the latest height from context.", //nolint:lll
Args: cobra.ExactArgs(2),
@@ -71,7 +71,7 @@ func GetStorageCmd() *cobra.Command {
// GetCodeCmd queries the code field of a given address
func GetCodeCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "code [address]",
Use: "code ADDRESS",
Short: "Gets code from an account",
Long: "Gets code from an account. If the height is not provided, it will use the latest height from context.",
Args: cobra.ExactArgs(1),
+1 -1
View File
@@ -32,7 +32,7 @@ func GetTxCmd() *cobra.Command {
// NewRawTxCmd command build cosmos transaction from raw ethereum transaction
func NewRawTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "raw [tx-hex]",
Use: "raw TX_HEX",
Short: "Build cosmos transaction from raw ethereum transaction",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
+3 -3
View File
@@ -19,7 +19,7 @@ The `query` commands allow users to query `evm` state.
Allows users to query the smart contract code at a given address.
```go
ethermintd query evm code [address] [flags]
ethermintd query evm code ADDRESS [flags]
```
```bash
@@ -35,7 +35,7 @@ code: "0xef616c92f3cfc9e92dc270d6acff9cea213cecc7020a76ee4395af09bdceb4837a1ebdb
Allows users to query storage for an account with a given key and height.
```bash
ethermintd query evm storage [address] [key] [flags]
ethermintd query evm storage ADDRESS KEY [flags]
```
```bash
@@ -55,7 +55,7 @@ The `tx` commands allow users to interact with the `evm` module.
Allows users to build cosmos transactions from raw ethereum transaction.
```bash
ethermintd tx evm raw [tx-hex] [flags]
ethermintd tx evm raw TX_HEX [flags]
```
```bash