diff options
author | lloyd <[email protected]> | 2006-08-12 15:19:21 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-12 15:19:21 +0000 |
commit | 6cefc0ff776364ce8a01a5cbc11fc3eea55942ba (patch) | |
tree | cda8a907922c8ab725e7e9acf0c0cc0e3e38088a /checks | |
parent | d2dfc5b636a79f0151cfa451a376370dc4048b04 (diff) |
In 'check', always initialize the library and run basic self tests, even
if run with no arguments.
Diffstat (limited to 'checks')
-rw-r--r-- | checks/check.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/checks/check.cpp b/checks/check.cpp index 5b0bcbfe6..6a7705090 100644 --- a/checks/check.cpp +++ b/checks/check.cpp @@ -33,21 +33,17 @@ int main(int argc, char* argv[]) { try { - if(argc <= 1) - { print_help(); return 1; } - OptionParser opts("help|html|init=|validate|" "benchmark|bench-type=|bench-algo=|seconds="); opts.parse(argv); - if(opts.is_set("help")) - { print_help(); return 1; } - std::string init_flags = (opts.is_set("init") ? opts.value("init") : ""); Botan::InitializerOptions init_options(init_flags); Botan::LibraryInitializer init(init_options); + if(opts.is_set("help") || argc <= 1) + { print_help(); return 1; } if(opts.is_set("validate")) return validate(); |