diff options
author | Ashley Cui <ashleycui16@gmail.com> | 2019-07-08 13:55:51 -0400 |
---|---|---|
committer | Ashley Cui <ashleycui16@gmail.com> | 2019-07-08 14:25:49 -0400 |
commit | e9f812ddfc24538a9962228ed257ae3a578edc1f (patch) | |
tree | 71e6d903de3cec0c70e1e6919ff94f76583916bf /cmd/podman | |
parent | eae377d6e8875ab19d06189032a7c8f98e5d84dd (diff) | |
download | podman-e9f812ddfc24538a9962228ed257ae3a578edc1f.tar.gz podman-e9f812ddfc24538a9962228ed257ae3a578edc1f.tar.bz2 podman-e9f812ddfc24538a9962228ed257ae3a578edc1f.zip |
Fix podman-remote usage message to display `podman-remote` instead of `podman`
When the user uses remote client, the message prompts the user to use `podman-remote`. This does not apply for Mac usage.
Signed-off-by: Ashley Cui <ashleycui16@gmail.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go index 248d63753..a8478bda6 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -2,11 +2,12 @@ package main import ( "context" - "github.com/containers/libpod/libpod" "io" "os" + "path" "github.com/containers/libpod/cmd/podman/cliconfig" + "github.com/containers/libpod/libpod" _ "github.com/containers/libpod/pkg/hooks/0.1.0" "github.com/containers/libpod/pkg/rootless" "github.com/containers/libpod/version" @@ -68,7 +69,7 @@ var mainCommands = []*cobra.Command{ } var rootCmd = &cobra.Command{ - Use: "podman", + Use: path.Base(os.Args[0]), Long: "manage pods and images", RunE: commandRunE(), PersistentPreRunE: func(cmd *cobra.Command, args []string) error { |