lingerer
lingerer
I try to use system yaml api and found the same problem.I check the code and I thought thie issue should solve.
Do you have any progress? I'm trying to use a odometer to replace IMU,but throught the code I did't find it possible.
> Do you have any progress? I'm trying to use a odometer to replace IMU,but throught the code I did't find it possible. It can't,the project is base on IMU...
A little bit different case ` argparse::ArgumentParser test("test", "1.0", argparse::default_arguments::none); test.add_argument("--vel").default_value(0.0).scan; test.add_argument("--vel").default_value(0.0).scan; test.parse_args(argc,argv); std::cout
> That's right. It's more natural. Add new argument will make a confusing usage() result.
I think it's not about two meanings. What's the point about adding dunplicate argument? if all the arguments are added in one function that's fine.But if arguments could be added...
> I've thought more about this and I'm not a fan of two meanings for a single function. Your proposal would have `add_argument` take on the meaning: "add a new...
2 The main suggestion is the default value should apply scanner as well,not only value. I can't offer a code patch cause I'm a old dog only can read but...
It also make sense. I am trying build a argument parser as a command in runtime, so inherit and change the inner maps is easy solution.
I digged it and found change from private to protected won't solve all the requirements. ArgumentParser as a friend class will not inheried by its child class. Asume a requirement...