summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-08 23:58:11 +0200
committerGitHub <noreply@github.com>2019-07-08 23:58:11 +0200
commitf4fec6ce718084c7d274ba08c6150878522fa24f (patch)
tree5b9a10fed4a6c80a6380d59c5c73945dd85cbc44
parentfce2e6577e8a6be153c45f4d732fb0fcc3c95a4a (diff)
parente9f812ddfc24538a9962228ed257ae3a578edc1f (diff)
downloadpodman-f4fec6ce718084c7d274ba08c6150878522fa24f.tar.gz
podman-f4fec6ce718084c7d274ba08c6150878522fa24f.tar.bz2
podman-f4fec6ce718084c7d274ba08c6150878522fa24f.zip
Merge pull request #3519 from ashley-cui/remoteusage
Podman-remote usage message to display `podman-remote` instead of `podman`
-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 {