Skip to content

Commit

Permalink
add validate cmd to tx and query subcmds (#347)
Browse files Browse the repository at this point in the history
Add validation to the usage of the tx and query commands.

Closes: #310
  • Loading branch information
colin-axner authored Apr 6, 2020
1 parent 3892920 commit ce8dc8f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions cmd/gaiacli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ func main() {

func queryCmd(cdc *amino.Codec) *cobra.Command {
queryCmd := &cobra.Command{
Use: "query",
Aliases: []string{"q"},
Short: "Querying subcommands",
Use: "query",
Aliases: []string{"q"},
Short: "Querying subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}

queryCmd.AddCommand(
Expand All @@ -112,8 +115,11 @@ func queryCmd(cdc *amino.Codec) *cobra.Command {

func txCmd(cdc *amino.Codec) *cobra.Command {
txCmd := &cobra.Command{
Use: "tx",
Short: "Transactions subcommands",
Use: "tx",
Short: "Transactions subcommands",
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}

txCmd.AddCommand(
Expand Down

0 comments on commit ce8dc8f

Please sign in to comment.