37 namespace flags_internal {
63 return ContainsHelpshortFlags(filename);
69 std::string VersionString() {
75 version_str +=
"Debug build (NDEBUG not #defined)\n";
90 return std::string(filename);
97 GUARDED_BY(custom_usage_config_guard) =
nullptr;
104 if (custom_usage_config)
return *custom_usage_config;
113 return default_config;
117 std::cerr <<
"ERROR: " << msg << std::endl;
131 flags_internal::ContainsHelpshortFlags;
138 flags_internal::ContainsHelppackageFlags;
146 if (flags_internal::custom_usage_config)
147 *flags_internal::custom_usage_config = usage_config;
void remove_prefix(size_type n)
ABSL_ATTRIBUTE_WEAK void AbslInternalReportFatalUsageError(absl::string_view)
static constexpr size_type npos
flags_internal::FlagKindFilter contains_help_flags
void SetFlagsUsageConfig(FlagsUsageConfig usage_config)
absl::string_view Basename(absl::string_view filename)
bool ConsumePrefix(absl::string_view *str, absl::string_view expected)
FlagsUsageConfig GetUsageConfig()
std::string ShortProgramInvocationName()
#define ABSL_ATTRIBUTE_WEAK
flags_internal::FlagKindFilter contains_helppackage_flags
size_type find_first_not_of(string_view s, size_type pos=0) const noexcept
void ReportUsageError(absl::string_view msg, bool is_fatal)
bool StartsWith(absl::string_view text, absl::string_view prefix)
std::function< std::string()> version_string
static ABSL_CONST_INIT std::string *program_name GUARDED_BY(program_name_guard)
flags_internal::FlagKindFilter contains_helpshort_flags
std::function< std::string(absl::string_view)> normalize_filename