code: func RequiresMaxArgs(max int) cobra.PositionalArgs {
  	return func(cmd *cobra.Command, args []string) error {
  		if len(args) <= max {
  			return nil
  		}
  		return errors.Errorf(
  			"%q requires at most %d %s.\nSee '%s --help'.\n\nUsage:  %s\n\n%s",
  			cmd.CommandPath(),
  			max,
  			pluralize("argument", max),
  			cmd.CommandPath(),
  			cmd.UseLine(),
  			cmd.Short,
  		)
  	}
  }
docs: // RequiresMaxArgs returns an error if there is not at most max args