def assert_args_are_not_options(arg_name, *args)
      invalid_args = args.select { |arg| arg&.start_with?('-') }
      if invalid_args.any?
        raise ArgumentError, "Invalid #{arg_name}: '#{invalid_args.join("', '")}'"
      end
    end
Validate that the given arguments cannot be mistaken for a command-line option

@param arg_name [String] the name of the arguments to mention in the error message
@param args [Array<String, nil>] the arguments to validate

@raise [ArgumentError] if any of the parameters are a string starting with a hyphen
@return [void]