summaryrefslogtreecommitdiff
path: root/cmd/podman/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/commands.go')
-rw-r--r--cmd/podman/commands.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go
index 2c56d5dec..71eb35048 100644
--- a/cmd/podman/commands.go
+++ b/cmd/podman/commands.go
@@ -42,10 +42,13 @@ func getMainCommands() []*cobra.Command {
_topCommand,
_umountCommand,
_unpauseCommand,
- _varlinkCommand,
volumeCommand.Command,
_waitCommand,
}
+
+ if len(_varlinkCommand.Use) > 0 {
+ rootCommands = append(rootCommands, _varlinkCommand)
+ }
return rootCommands
}