8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <iostream> #include <optional> #include <string> #include <structopt/app.hpp> struct Options { std::string db_name; std::string path_files; std::string path_archive; enum class LogLevel { trace, debug, info, warn, err, critical, off }; std::optional<LogLevel> log_level = LogLevel::debug; }; STRUCTOPT(Options, db_name, path_files, path_archive, log_level); int main(int argc, char* argv[]) { auto opts = structopt::app("test", "1.0.0.1").parse<Options>(argc, argv); std::cout << "Hello World!\n"; }
without parameters ./test.exe
Microsoft Visual Studio Community 2019 Version 16.7.2 VisualStudio.16.Release/16.7.2+30413.136
The text was updated successfully, but these errors were encountered:
I know that wrong args but... ./test.exe --db_name=qqq --path_files=rrr --path_archive=uuu infinity loop in
structopt/include/structopt/app.hpp
Lines 39 to 42 in a918313
Sorry, something went wrong.
Fixes infinite loop in #10
5eac195
Merge pull request #11 from p-ranav/bugfix/10
639c9ca
No branches or pull requests
without parameters
./test.exe
Microsoft Visual Studio Community 2019
Version 16.7.2
VisualStudio.16.Release/16.7.2+30413.136
The text was updated successfully, but these errors were encountered: