summaryrefslogtreecommitdiff
path: root/cmd/podman/top.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/top.go')
-rw-r--r--cmd/podman/top.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/top.go b/cmd/podman/top.go
index a03830ee5..51b813e5a 100644
--- a/cmd/podman/top.go
+++ b/cmd/podman/top.go
@@ -48,12 +48,11 @@ the latest container.
func init() {
topCommand.Command = _topCommand
+ topCommand.SetUsageTemplate(UsageTemplate())
flags := topCommand.Flags()
flags.BoolVar(&topCommand.ListDescriptors, "list-descriptors", false, "")
flags.MarkHidden("list-descriptors")
flags.BoolVarP(&topCommand.Latest, "latest", "l", false, "Act on the latest container podman is aware of")
-
- rootCmd.AddCommand(topCommand.Command)
}
func topCmd(c *cliconfig.TopValues) error {