24 using namespace Minisat;
29 for (i = j = 1; i < argc; i++){
30 const char* str = argv[i];
34 else if (
match(str,
"-verb"))
37 bool parsed_ok =
false;
46 if (strict &&
match(argv[i],
"-"))
64 fprintf(stderr, usage, argv[0]);
68 const char* prev_cat = NULL;
69 const char* prev_type = NULL;
76 fprintf(stderr,
"\n%s OPTIONS:\n\n", cat);
77 else if (type != prev_type)
78 fprintf(stderr,
"\n");
86 fprintf(stderr,
"\nHELP OPTIONS:\n\n");
89 fprintf(stderr,
"\n");
void sort(T *array, int size, LessThan lt)
void setHelpPrefixStr(const char *str)
int parseOptions(int &argc, char **argv, bool strict=false)
static const char *& getHelpPrefixString()
static vec< Option * > & getOptionList()
static const char *& getUsageString()
static bool match(B &in, const char *str)
void setUsageHelp(const char *str)
int printUsageAndExit(int argc, char **argv, bool verbose=false)