zhihaoy
zhihaoy
Interestingly, Python argparse doesn't support this (https://bugs.python.org/issue9338). `--trace` has to be `'*'` or `argparse.REMAINDER`, but under those modes, Python argparse does not parse the `--` pseudo argument at all. ```python...
I know this part, but what if users want to do this: ```c++ program.action([](std::string const& s) { return std::vector(std::stoi(s)); // let's say it's a vector of N random numbers });...
`s` is "1" in `--foo 1`. It's "1" then "2" in `--foo 1 2` but I don't meant to bring in nargs > 1. It's an nargs == 1 argument,...
Also mask load please. Useful for loading the end-sequence elements.
I'm not asking for more BDD-style test cases. This ticket says that we miss a log on terminal for demo purpose. I think we need a feature to print the...
It's close, but -- the idea is that BDD is a story. It is designed to tell a story by concatenation the keywords and their title. I want a feature...
Or called a BDD specification. Something like this https://en.wikipedia.org/wiki/Behavior-driven_development#Behavioral_specifications , printed on the terminal, when the tests are running, plus a few metric information such as file name, time elapsed,...
Examples: doctest: https://github.com/doctest/doctest/blob/7b9885133108ae301ddd16e2651320f54cafeba7/doctest/doctest.h#L4125-L4127 catch2: https://github.com/catchorg/Catch2/blob/efb54926eec28900e020131930b35116075f6f84/src/catch2/internal/catch_console_colour.cpp#L173-L177
A `'\n'` seems to be required. Hope to have nicer log that allows `log("something {}", val)` to automatically print on a new line.