• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <gflags/gflags.h>
2 
3 DEFINE_string(message, "", "The message to print");
4 void print_message(); // in gflags_declare_flags.cc
5 
main(int argc,char ** argv)6 int main(int argc, char **argv)
7 {
8   GFLAGS_NAMESPACE::SetUsageMessage("Test compilation and use of gflags_declare.h");
9   GFLAGS_NAMESPACE::ParseCommandLineFlags(&argc, &argv, true);
10   print_message();
11   return 0;
12 }
13