def validate_args
      if name_args.size < 1
        ui.error('No cookbook has been specified')
        show_usage
        exit 1
      end
      if name_args.size > 2
        ui.error('Too many arguments are being passed. Please verify.')
        show_usage
        exit 1
      end
    end
def validate_args
      if name_args.size < 1
        ui.error('No cookbook has been specified')
        show_usage
        exit 1
      end
      if name_args.size > 2
        ui.error('Too many arguments are being passed. Please verify.')
        show_usage
        exit 1
      end
    end
Ensure argumanets are valid, assign values of arguments

 @param [Array] the global `name_args` object