diff --git a/example/response_file.cpp b/example/response_file.cpp index dcb27bb..18876a6 100644 --- a/example/response_file.cpp +++ b/example/response_file.cpp @@ -46,6 +46,7 @@ int main(int ac, char* av[]) ("help", "produce a help message") ("include-path,I", value< vector >()->composing(), "include path") + ("magic", value(), "magic value") ("response-file", value(), "can be specified with '@name', too") ; @@ -82,6 +83,9 @@ int main(int ac, char* av[]) copy(s.begin(), s.end(), ostream_iterator(cout, " ")); cout << "\n"; } + if (vm.count("magic")) { + cout << "Magic value: " << vm["magic"].as() << "\n"; + } } catch(exception& e) { cout << e.what() << "\n"; diff --git a/example/response_file.rsp b/example/response_file.rsp index 9937037..d7c6777 100644 --- a/example/response_file.rsp +++ b/example/response_file.rsp @@ -1,2 +1,3 @@ -I bar --I biz \ No newline at end of file +-I biz +--magic 10 \ No newline at end of file