Namespaces | Functions
usage.cc File Reference
#include "absl/flags/internal/usage.h"
#include <map>
#include <string>
#include "absl/flags/flag.h"
#include "absl/flags/internal/path_util.h"
#include "absl/flags/internal/program_name.h"
#include "absl/flags/usage_config.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
#include "absl/synchronization/mutex.h"
Include dependency graph for usage.cc:

Go to the source code of this file.

Namespaces

 absl
 
 absl::flags_internal
 

Functions

 ABSL_FLAG (bool, help, false, "show help on important flags for this binary [tip: all flags can " "have two dashes]")
 
 ABSL_FLAG (bool, helpfull, false, "show help on all flags")
 
 ABSL_FLAG (bool, helpshort, false, "show help on only the main module for this program")
 
 ABSL_FLAG (bool, helppackage, false, "show help on all modules in the main package")
 
 ABSL_FLAG (bool, version, false, "show version and build info and exit")
 
 ABSL_FLAG (bool, only_check_args, false, "exit after checking all flags")
 
 ABSL_FLAG (std::string, helpon, "", "show help on the modules named by this flag value")
 
 ABSL_FLAG (std::string, helpmatch, "", "show help on modules whose name contains the specified substr")
 
void absl::flags_internal::FlagHelp (std::ostream &out, const flags_internal::CommandLineFlag &flag, HelpFormat format)
 
void absl::flags_internal::FlagsHelp (std::ostream &out, absl::string_view filter, HelpFormat format)
 
int absl::flags_internal::HandleUsageFlags (std::ostream &out)
 
absl::string_view absl::flags_internal::ProgramUsageMessage ()
 
void absl::flags_internal::SetProgramUsageMessage (absl::string_view new_usage_message)
 

Function Documentation

◆ ABSL_FLAG() [1/8]

ABSL_FLAG ( bool  ,
help  ,
false  ,
"show help on important flags for this binary "  [tip:all flags can " "have two dashes] 
)

◆ ABSL_FLAG() [2/8]

ABSL_FLAG ( bool  ,
helpfull  ,
false  ,
"show help on all flags"   
)

◆ ABSL_FLAG() [3/8]

ABSL_FLAG ( bool  ,
helpshort  ,
false  ,
"show help on only the main module for this program"   
)

◆ ABSL_FLAG() [4/8]

ABSL_FLAG ( bool  ,
helppackage  ,
false  ,
"show help on all modules in the main package"   
)

◆ ABSL_FLAG() [5/8]

ABSL_FLAG ( bool  ,
version  ,
false  ,
"show version and build info and exit"   
)

◆ ABSL_FLAG() [6/8]

ABSL_FLAG ( bool  ,
only_check_args  ,
false  ,
"exit after checking all flags"   
)

◆ ABSL_FLAG() [7/8]

ABSL_FLAG ( std::string  ,
helpon  ,
""  ,
"show help on the modules named by this flag value  
)

◆ ABSL_FLAG() [8/8]

ABSL_FLAG ( std::string  ,
helpmatch  ,
""  ,
"show help on modules whose name contains the specified substr"   
)

Variable Documentation

◆ first_line_

bool first_line_
private

Definition at line 159 of file usage.cc.

◆ line_len_

int line_len_
private

Definition at line 158 of file usage.cc.

◆ max_line_len_

const int max_line_len_
private

Definition at line 157 of file usage.cc.

◆ out_

std::ostream& out_
private

Definition at line 156 of file usage.cc.

◆ tag_

absl::string_view tag_
private

Definition at line 90 of file usage.cc.

◆ txt_

absl::string_view txt_
private

Definition at line 91 of file usage.cc.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22