diff --git a/examples/inter_argument_order.cpp b/examples/inter_argument_order.cpp index 8056523..6d570e1 100644 --- a/examples/inter_argument_order.cpp +++ b/examples/inter_argument_order.cpp @@ -17,7 +17,7 @@ int main(int argc, char **argv) { // Standard parsing lines (copy and paste in) try { app.parse(argc, argv); - } catch (const CLI::ParseError &e) { + } catch(const CLI::ParseError &e) { return app.exit(e); } @@ -25,7 +25,7 @@ int main(int argc, char **argv) { std::reverse(std::begin(foos), std::end(foos)); std::reverse(std::begin(bars), std::end(bars)); - std::vector> keyval; + std::vector> keyval; for(auto option : app.parse_order()) { if(option == foo) { keyval.emplace_back("foo", foos.back()); @@ -41,10 +41,8 @@ int main(int argc, char **argv) { std::string name; int value; - for(auto& tuple : keyval) { + for(auto &tuple : keyval) { std::tie(name, value) = tuple; std::cout << name << " : " << value << std::endl; } } - - diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index d5ed30d..f4729cd 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -80,9 +80,9 @@ class App { /// /// This is faster and cleaner than storing just a list of strings and reparsing. This may contain the -- separator. missing_t missing_; - + /// This is a list of pointers to options with the orignal parse order - std::vector parse_order_; + std::vector