code: func NewTopCommand(dockerCli command.Cli) *cobra.Command {
  	var opts topOptions
  
  	cmd := &cobra.Command{
  		Use:   "top CONTAINER [ps OPTIONS]",
  		Short: "Display the running processes of a container",
  		Args:  cli.RequiresMinArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.container = args[0]
  			opts.args = args[1:]
  			return runTop(dockerCli, &opts)
  		},
  	}
  
  	flags := cmd.Flags()
  	flags.SetInterspersed(false)
  
  	return cmd
  }
docs: // NewTopCommand creates a new cobra.Command for `docker top`