CLI moved to stack object

This commit is contained in:
whatdoineed2do/Ray 2023-09-25 12:10:42 +01:00
parent 12a041c380
commit bf40bb6402

View File

@ -39,23 +39,23 @@ int main(int argc, char *argv[]) {
return status; return status;
} }
CLI* run = new CLI(options, keys); CLI run(options, keys);
switch(options.applicationMode) { switch(options.applicationMode) {
case MODE_BINK1998_GENERATE: case MODE_BINK1998_GENERATE:
return run->BINK1998Generate(); return run.BINK1998Generate();
case MODE_BINK2002_GENERATE: case MODE_BINK2002_GENERATE:
return run->BINK2002Generate(); return run.BINK2002Generate();
case MODE_BINK1998_VALIDATE: case MODE_BINK1998_VALIDATE:
return run->BINK1998Validate(); return run.BINK1998Validate();
case MODE_BINK2002_VALIDATE: case MODE_BINK2002_VALIDATE:
return run->BINK2002Validate(); return run.BINK2002Validate();
case MODE_CONFIRMATION_ID: case MODE_CONFIRMATION_ID:
return run->ConfirmationID(); return run.ConfirmationID();
default: default:
return 1; return 1;