2008-02-25 22:46:48 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2013-04-16 23:57:30 -04:00
|
|
|
#include "toku_portability.h"
|
2013-04-16 23:57:32 -04:00
|
|
|
#include "brt.h"
|
2013-04-16 23:57:30 -04:00
|
|
|
|
2007-12-22 20:56:20 +00:00
|
|
|
int verbose=0;
|
|
|
|
|
2013-04-16 23:57:20 -04:00
|
|
|
static inline void
|
2013-04-16 23:57:19 -04:00
|
|
|
default_parse_args (int argc, const char *argv[]) {
|
2007-12-22 20:56:20 +00:00
|
|
|
const char *progname=argv[0];
|
|
|
|
argc--; argv++;
|
|
|
|
while (argc>0) {
|
|
|
|
if (strcmp(argv[0],"-v")==0) {
|
|
|
|
verbose=1;
|
|
|
|
} else if (strcmp(argv[0],"-q")==0) {
|
|
|
|
verbose=0;
|
|
|
|
} else {
|
|
|
|
fprintf(stderr, "Usage:\n %s [-v] [-q]\n", progname);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
argc--; argv++;
|
|
|
|
}
|
|
|
|
}
|
2013-04-16 23:57:32 -04:00
|
|
|
|
|
|
|
int test_main(int argc, const char *argv[]);
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, const char *argv[]) {
|
|
|
|
toku_brt_init();
|
|
|
|
test_main(argc, argv);
|
|
|
|
toku_brt_destroy();
|
|
|
|
}
|
|
|
|
|