summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAshley Cui <ashleycui16@gmail.com>2019-07-08 13:55:51 -0400
committerAshley Cui <ashleycui16@gmail.com>2019-07-08 14:25:49 -0400
commite9f812ddfc24538a9962228ed257ae3a578edc1f (patch)
tree71e6d903de3cec0c70e1e6919ff94f76583916bf /cmd
parenteae377d6e8875ab19d06189032a7c8f98e5d84dd (diff)
downloadpodman-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')
-rw-r--r--cmd/podman/main.go5
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 {