IMP  2.2.0
The Integrative Modeling Platform
flags.cpp
1 /** \example base/flags.cpp
2  Show simple usage of the command line flags support in IMP.base in a
3  C++ executable. Run with "--help" to see all available flags.
4 */
5 #include <IMP/base/flags.h>
6 #include <IMP/base/Flag.h>
7 
8 int main(int argc, char *argv[]) {
9  IMP::base::Flag<std::string> hello("hello", "How to say hello.",
10  "Hello world");
11 
12  IMP::base::setup_from_argv(argc, argv, "Example on C++ use of flags.");
13 
14  std::cout << hello << std::endl;
15 
16  return 0;
17 }
Various general useful macros for IMP.
Various general useful macros for IMP.
void setup_from_argv(int argc, char **argv, std::string description)