tvl-depot/absl/flags
Pavel Samolysov 238b9a59c8
Skip the .exe suffix in the helpshort filter on Windows (#629)
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>
2020-03-09 14:37:46 -04:00
..
internal Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
BUILD.bazel Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
CMakeLists.txt Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
config.h Export of internal Abseil changes 2020-02-10 13:55:42 -05:00
config_test.cc Export of internal Abseil changes. 2019-05-14 14:23:52 -04:00
declare.h Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
flag.cc Export of internal Abseil changes 2020-02-10 13:55:42 -05:00
flag.h Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
flag_benchmark.cc Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
flag_test.cc Export of internal Abseil changes 2020-03-03 17:32:55 -05:00
flag_test_defs.cc Export of internal Abseil changes 2019-12-12 15:37:13 -05:00
marshalling.cc Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
marshalling.h Export of internal Abseil changes 2020-01-21 11:47:40 -05:00
marshalling_test.cc Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
parse.cc Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
parse.h Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
parse_test.cc Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
usage.cc Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
usage.h Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
usage_config.cc Skip the .exe suffix in the helpshort filter on Windows (#629) 2020-03-09 14:37:46 -04:00
usage_config.h Export of internal Abseil changes 2020-01-10 13:37:41 -05:00
usage_config_test.cc Skip the .exe suffix in the helpshort filter on Windows (#629) 2020-03-09 14:37:46 -04:00