20 #include <ndb_global.h>
31 int main(
int argc,
const char** argv){
34 const char * _database =
"BANK";
37 {
"usage",
'?', arg_flag, &_help,
"Print help",
"" },
38 {
"database",
'd', arg_string, &_database,
"Database name",
""}
40 int num_args =
sizeof(args) /
sizeof(args[0]);
43 "This program will make GL records in the bank\n";
45 if(getarg(args, num_args, argc, argv, &optind) || _help) {
46 arg_printusage(args, num_args, argv[0], desc);
47 return NDBT_ProgramExit(NDBT_WRONGARGS);
53 return NDBT_ProgramExit(NDBT_FAILED);
56 Bank bank(con,_database);
58 if (bank.performMakeGLs() != 0)
59 return NDBT_ProgramExit(NDBT_FAILED);
61 return NDBT_ProgramExit(NDBT_OK);