summaryrefslogtreecommitdiff
path: root/cli-tests
AgeCommit message (Collapse)AuthorFilesLines
2021-10-16Release version 1.2.0-b.8+1v1.2.0-b.8+1Boris Kolpackov1-1/+1
Update pre-generated documentation.
2021-10-16Release version 1.2.0-b.8v1.2.0-b.8Boris Kolpackov1-1/+1
2021-09-28Move runtime tests from cli-tests/ to cli/tests/Boris Kolpackov6-406/+0
2021-09-20Use ad hoc recipe for parsing code and documentation generatingKaren Arutyunov1-2/+2
The overall approach is to store pre-generated bootstrap options.?xx and cli.{1,xhtml} and automatically update them in the development build (config.cli.develop=true). See README.md in the root of the repository for details.
2021-09-10Add multi-argument grouping support in group_scannerBoris Kolpackov2-9/+116
2021-08-09Fix dependence on argument evaluation order in position testBoris Kolpackov1-1/+7
2021-08-03Add support for tracking argument/option positionBoris Kolpackov4-0/+96
The scanner interface now provides the position() function that returns a monotonically-increasing number which, if stored, can later be used to determine the relative position of the arguments. There is also now a parser implementation for std::pair<T, std::size_t> which parses the value T into the first half of the pair and stores the option position in the second half. Together, this can be used to establish the relative position of different options, for example: class options { std::vector<std::pair<std::uint64_t, std::size>> --config-id; std::vector<std::pair<std::string, std::size>> --config-name; }; cli::argv_scanner scan (argc, argv); options ops (scan); // Iterate over --config-id and --config-name options in the order // specified by the user. // auto ii (ops.config_id ().begin ()); auto ni (ops.config_name ().begin ()); for (size_t i (0), n (scan.position ()); i != n; ++i) { if (ii != ops.config_id ().end () && ii->second == i) { // Handle *ii. ++ii; } if (ni != ops.config_name ().end () && ni->second == i) { // Handle *ni. ++ni; } }
2021-02-24Various cleanupsKaren Arutyunov3-2/+6
2020-12-08Complete options file path using referencing file path as baseKaren Arutyunov1-16/+68
2020-08-01Use legal{} target type for legal documentation (LICENSE, AUTHORS, etc)Karen Arutyunov1-1/+1
2020-08-01Disable success build emailsKaren Arutyunov1-1/+0
2020-07-21Bump build2 version requirement to 0.13.0Boris Kolpackov1-2/+2
2020-07-21Change version to 1.2.0-b.7.zBoris Kolpackov1-1/+1
2020-07-18Release version 1.2.0-b.7v1.2.0-b.7Boris Kolpackov1-1/+1
2020-04-27Separate tests and examples into individual packagesKaren Arutyunov42-0/+1559
Also make cli module to be explicitly enabled via the config.cli configuration variable.