code: func NewSaveCommand(dockerCli command.Cli) *cobra.Command {
  	var opts saveOptions
  
  	cmd := &cobra.Command{
  		Use:   "save [OPTIONS] IMAGE [IMAGE...]",
  		Short: "Save one or more images to a tar archive (streamed to STDOUT by default)",
  		Args:  cli.RequiresMinArgs(1),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.images = args
  			return RunSave(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  
  	flags.StringVarP(&opts.output, "output", "o", "", "Write to a file, instead of STDOUT")
  
  	return cmd
  }
docs: // NewSaveCommand creates a new `docker save` command