From cd9ae0447ba647b5a15ffaf30b24768e220c2c09 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 27 Jul 2020 11:13:34 +0200 Subject: [PATCH] Update binary name in help text --- cmd/wasmcli/main.go | 9 +++++---- cmd/wasmd/main.go | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/wasmcli/main.go b/cmd/wasmcli/main.go index d322213..a4e12a2 100644 --- a/cmd/wasmcli/main.go +++ b/cmd/wasmcli/main.go @@ -5,6 +5,9 @@ import ( "os" "path" + "github.com/spf13/cobra" + "github.com/spf13/viper" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" @@ -17,8 +20,6 @@ import ( authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest" "github.com/cosmos/cosmos-sdk/x/bank" bankcmd "github.com/cosmos/cosmos-sdk/x/bank/client/cli" - "github.com/spf13/cobra" - "github.com/spf13/viper" "github.com/tendermint/go-amino" "github.com/tendermint/tendermint/libs/cli" @@ -45,8 +46,8 @@ func main() { // with the cdc rootCmd := &cobra.Command{ - Use: "wasmcli", - Short: "Command line interface for interacting with wasmd", + Use: version.ClientName, + Short: "Command line interface for interacting with " + version.ServerName, } // Add --chain-id to persistent flags and mark it required diff --git a/cmd/wasmd/main.go b/cmd/wasmd/main.go index c849b7c..99b75db 100644 --- a/cmd/wasmd/main.go +++ b/cmd/wasmd/main.go @@ -2,6 +2,7 @@ package main import ( "encoding/json" + "github.com/cosmos/cosmos-sdk/version" "io" "github.com/CosmWasm/wasmd/app" @@ -40,7 +41,7 @@ func main() { ctx := server.NewDefaultContext() cobra.EnableCommandSorting = false rootCmd := &cobra.Command{ - Use: "wasmd", + Use: version.ServerName, Short: "Wasm Daemon (server) with wasm gov proposals disabled\",", PersistentPreRunE: server.PersistentPreRunEFn(ctx), }