Add -V/--validate command line switch (#31)

* add -V/--validate command line switch

* Return success/failure bool on CLI::stripKey

---------

Co-authored-by: Neo <321592+Neo-Desktop@users.noreply.github.com>
This commit is contained in:
Emma
2023-06-19 20:41:27 +01:00
committed by GitHub
parent bc23fc5233
commit 4b60737bb4
6 changed files with 114 additions and 16 deletions

View File

@@ -42,11 +42,17 @@ int main(int argc, char *argv[]) {
CLI* run = new CLI(options, keys);
switch(options.applicationMode) {
case MODE_BINK1998:
return run->BINK1998();
case MODE_BINK1998_GENERATE:
return run->BINK1998Generate();
case MODE_BINK2002:
return run->BINK2002();
case MODE_BINK2002_GENERATE:
return run->BINK2002Generate();
case MODE_BINK1998_VALIDATE:
return run->BINK1998Validate();
case MODE_BINK2002_VALIDATE:
return run->BINK2002Validate();
case MODE_CONFIRMATION_ID:
return run->ConfirmationID();