238b9a59c8
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> |
||
---|---|---|
.. | ||
internal | ||
BUILD.bazel | ||
CMakeLists.txt | ||
config.h | ||
config_test.cc | ||
declare.h | ||
flag.cc | ||
flag.h | ||
flag_benchmark.cc | ||
flag_test.cc | ||
flag_test_defs.cc | ||
marshalling.cc | ||
marshalling.h | ||
marshalling_test.cc | ||
parse.cc | ||
parse.h | ||
parse_test.cc | ||
usage.cc | ||
usage.h | ||
usage_config.cc | ||
usage_config.h | ||
usage_config_test.cc |