On Windows, the `flags_internal::ShortProgramInvocationName()` function usually returns the program name with '.exe' (if the extension is present in the command line during the program startup). This fact breaks the checks in the `ContainsHelpshortFlags` filter: obviously, module names have no .exe in them. Therefore, no defined flags are shown when the program runs with the --help flag. The program name should be used in filter without this extension even though it is present. The unit test has also been updated. Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| internal | Loading commit data... | |
| BUILD.bazel | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| config.h | Loading commit data... | |
| config_test.cc | Loading commit data... | |
| declare.h | Loading commit data... | |
| flag.cc | Loading commit data... | |
| flag.h | Loading commit data... | |
| flag_benchmark.cc | Loading commit data... | |
| flag_test.cc | Loading commit data... | |
| flag_test_defs.cc | Loading commit data... | |
| marshalling.cc | Loading commit data... | |
| marshalling.h | Loading commit data... | |
| marshalling_test.cc | Loading commit data... | |
| parse.cc | Loading commit data... | |
| parse.h | Loading commit data... | |
| parse_test.cc | Loading commit data... | |
| usage.cc | Loading commit data... | |
| usage.h | Loading commit data... | |
| usage_config.cc | Loading commit data... | |
| usage_config.h | Loading commit data... | |
| usage_config_test.cc | Loading commit data... |