blob: 66bb4817a16c74bfd0f49f800a20b30009791145 [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <vector>
#include "absl/flags/flag.h"
#define DEFINE_QUICHE_COMMAND_LINE_FLAG_IMPL(type, name, default_value, help) \
ABSL_FLAG(type, name, default_value, help)
namespace quiche {
template <typename T>
T GetQuicheCommandLineFlag(const absl::Flag<T>& flag) {
return absl::GetFlag(flag);
std::vector<std::string> QuicheParseCommandLineFlagsImpl(
const char* usage, int argc, const char* const* argv,
bool parse_only = false);
void QuichePrintCommandLineFlagHelpImpl(const char* usage);
} // namespace quiche
template <typename T>
T GetQuicheFlagImplImpl(const absl::Flag<T>& flag) {
return absl::GetFlag(flag);