diff options
author | Ingo Klöcker <[email protected]> | 2022-05-05 15:19:39 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-05-05 15:24:59 +0000 |
commit | e029fd27350fcbda1b4689bc557e996d749d78ac (patch) | |
tree | 3e907f301c0f0317dfa86b0be426eb71028e6cc0 /lang/cpp/tests/run-keylist.cpp | |
parent | qt: Revert change of result signal of RefreshKeysJob (diff) | |
download | gpgme-e029fd27350fcbda1b4689bc557e996d749d78ac.tar.gz gpgme-e029fd27350fcbda1b4689bc557e996d749d78ac.zip |
cpp,tests: Actually parse the --with-secret option
* lang/cpp/tests/run-keylist.cpp (main): Handle --with-secret option.
Print error for unknown option.
--
The --with-secret option was already listed in the help. Now it also
works.
GnuPG-bug-id: 5965
Diffstat (limited to 'lang/cpp/tests/run-keylist.cpp')
-rw-r--r-- | lang/cpp/tests/run-keylist.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/cpp/tests/run-keylist.cpp b/lang/cpp/tests/run-keylist.cpp index 852e321d..9e7d763c 100644 --- a/lang/cpp/tests/run-keylist.cpp +++ b/lang/cpp/tests/run-keylist.cpp @@ -119,6 +119,9 @@ main (int argc, char **argv) } else if (!strcmp (*argv, "--locate")) { argc--; argv++; mode |= KeyListMode::Locate; + } else if (!strcmp (*argv, "--with-secret")) { + argc--; argv++; + mode |= KeyListMode::WithSecret; } else if (!strcmp (*argv, "--force-extern")) { argc--; argv++; mode |= KeyListMode::ForceExtern; @@ -126,6 +129,7 @@ main (int argc, char **argv) argc--; argv++; mode |= KeyListMode::LocateExternal; } else if (!strncmp (*argv, "--", 2)) { + std::cerr << "Error: Unknown option: " << *argv << std::endl; show_usage (1); } } |