[program_options] separating long name and short name
23 Jun
2009
23 Jun
'09
11:26 p.m.
Hello, I would like to store an option name in a variable and later use it with variables_map. E.g. const char* incl = "include-path"; options_description desc; desc.add_options()(incl, "include path"); variables_map vm; store(parse_command_line(argc, argv, desc), vm); if(vm.count(incl)) { ... } But if I also want to specify a short name const char* incl = "include-path,i"; ... The answer here is always zero: vm.count(incl) Is there a way to add a short name separately? Thank you Mikhail
5619
Age (days ago)
5619
Last active (days ago)
0 comments
1 participants
participants (1)
-
svarneticist