#include "absl/flags/parse.h"
#include <stdlib.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/base/const_init.h"
#include "absl/base/thread_annotations.h"
#include "absl/flags/commandlineflag.h"
#include "absl/flags/config.h"
#include "absl/flags/flag.h"
#include "absl/flags/internal/commandlineflag.h"
#include "absl/flags/internal/flag.h"
#include "absl/flags/internal/parse.h"
#include "absl/flags/internal/private_handle_accessor.h"
#include "absl/flags/internal/program_name.h"
#include "absl/flags/internal/usage.h"
#include "absl/flags/reflection.h"
#include "absl/flags/usage.h"
#include "absl/flags/usage_config.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/strings/strip.h"
#include "absl/synchronization/mutex.h"
Go to the source code of this file.
|
| ABSL_FLAG (std::vector< std::string >, flagfile, {}, "comma-separated list of files to load flags from") .OnUpdate([]() |
|
| ABSL_FLAG (std::vector< std::string >, fromenv, {}, "comma-separated list of flags to set from the environment" " [use 'export FLAGS_flag1=value']") .OnUpdate([]() |
|
| ABSL_FLAG (std::vector< std::string >, tryfromenv, {}, "comma-separated list of flags to try to set from the environment if " "present") .OnUpdate([]() |
|
| ABSL_FLAG (std::vector< std::string >, undefok, {}, "comma-separated list of flag names that it is okay to specify " "on the command line even if the program does not define a flag " "with that name") |
|
std::vector< char * > | absl::ParseCommandLine (int argc, char *argv[]) |
|
std::vector< char * > | absl::flags_internal::ParseCommandLineImpl (int argc, char *argv[], ArgvListAction arg_list_act, UsageFlagsAction usage_flag_act, OnUndefinedFlag on_undef_flag) |
|
bool | absl::flags_internal::WasPresentOnCommandLine (absl::string_view flag_name) |
|
◆ ABSL_FLAGS_INTERNAL_IGNORE_TYPE
#define ABSL_FLAGS_INTERNAL_IGNORE_TYPE |
( |
|
T, |
|
|
|
_ |
|
) |
| if (flag.IsOfType<T>()) return; |
◆ ABSL_FLAG() [1/4]
ABSL_FLAG |
( |
std::vector< std::string > |
, |
|
|
flagfile |
, |
|
|
{} |
, |
|
|
"comma-separated list of files to load flags from" |
|
|
) |
| |
◆ ABSL_FLAG() [2/4]
ABSL_FLAG |
( |
std::vector< std::string > |
, |
|
|
fromenv |
, |
|
|
{} |
, |
|
|
"comma-separated list of flags to set from the environment" " " |
[use 'export FLAGS_flag1=value'] |
|
) |
| |
◆ ABSL_FLAG() [3/4]
ABSL_FLAG |
( |
std::vector< std::string > |
, |
|
|
tryfromenv |
, |
|
|
{} |
, |
|
|
"comma-separated list of flags to try to set from the environment if " "present" |
|
|
) |
| |
◆ ABSL_FLAG() [4/4]
ABSL_FLAG |
( |
std::vector< std::string > |
, |
|
|
undefok |
, |
|
|
{} |
, |
|
|
"comma-separated list of flag names that it is okay to specify " "on the command line even if the program does not define a flag " "with that name" |
|
|
) |
| |
◆ args_
std::vector<std::string> args_ |
|
private |
◆ next_arg_