code: func newAnnotateCommand(dockerCli command.Cli) *cobra.Command {
  	var opts annotateOptions
  
  	cmd := &cobra.Command{
  		Use:   "annotate [OPTIONS] MANIFEST_LIST MANIFEST",
  		Short: "Add additional information to a local image manifest",
  		Args:  cli.ExactArgs(2),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.target = args[0]
  			opts.image = args[1]
  			return runManifestAnnotate(dockerCli, opts)
  		},
  	}
  
  	flags := cmd.Flags()
  
  	flags.StringVar(&opts.os, "os", "", "Set operating system")
  	flags.StringVar(&opts.arch, "arch", "", "Set architecture")
  	flags.StringSliceVar(&opts.osFeatures, "os-features", []string{}, "Set operating system feature")
  	flags.StringVar(&opts.variant, "variant", "", "Set architecture variant")
  
  	return cmd
  }
docs: // NewAnnotateCommand creates a new `docker manifest annotate` command