Skip to content

Commit

Permalink
Define version parameter for root command
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
  • Loading branch information
ondrej-fabry committed Jul 30, 2019
1 parent 3f07db6 commit 9befb2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/agentctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package cmd
import (
"os"

"github.com/ligato/cn-infra/agent"
"github.com/spf13/cobra"
)

Expand All @@ -32,11 +33,11 @@ var RootCmd = &cobra.Command{
Short: "A CLI tool for managing agents.",
Example: `Specify the etcd to connect to and list all agents that it knows about:
$ export ETCD_ENDPOINTS=172.17.0.1:2379
$ agentctl show
or with a command line flag:
$ agentctl --endpoints 172.17.0.1:2379 show
`,
Version: agent.BuildVersion,
}

func init() {
Expand Down

0 comments on commit 9befb2a

Please sign in to comment.