diff options
| author | SZEDER Gábor <szeder.dev@gmail.com> | 2022-08-19 18:03:55 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 11:13:14 -0700 |
| commit | c1b117d31ca9b09444f14092c35d092f3330823e (patch) | |
| tree | fec35ec1001ec1e892ffed234ba52d5685b9e71e /t/helper/test-tool.h | |
| parent | t5505-remote.sh: check the behavior without a subcommand (diff) | |
| download | git-c1b117d31ca9b09444f14092c35d092f3330823e.tar.gz git-c1b117d31ca9b09444f14092c35d092f3330823e.zip | |
t0040-parse-options: test parse_options() with various 'parse_opt_flags'
In 't0040-parse-options.sh' we thoroughly test the parsing of all
types and forms of options, but in all those tests parse_options() is
always invoked with a 0 flags parameter.
Add a few tests to demonstrate how various 'enum parse_opt_flags'
values are supposed to influence option parsing.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
| -rw-r--r-- | t/helper/test-tool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index bb79927163..d8e8403d70 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -41,6 +41,7 @@ int cmd__oidtree(int argc, const char **argv); int cmd__online_cpus(int argc, const char **argv); int cmd__pack_mtimes(int argc, const char **argv); int cmd__parse_options(int argc, const char **argv); +int cmd__parse_options_flags(int argc, const char **argv); int cmd__parse_pathspec_file(int argc, const char** argv); int cmd__partial_clone(int argc, const char **argv); int cmd__path_utils(int argc, const char **argv); |
