Files
git/builtin
Ævar Arnfjörð Bjarmason 69d94464e1 submodule--helper: use OPT_SUBCOMMAND() API
Have the cmd_submodule__helper() use the OPT_SUBCOMMAND() API
introduced in fa83cc834d (parse-options: add support for parsing
subcommands, 2022-08-19).

This is only a marginal reduction in line count, but once we start
unifying this with a yet-to-be-added "builtin/submodule.c" it'll be
much easier to reason about those changes, as they'll both use
OPT_SUBCOMMAND().

We don't need to worry about "argv[0]" being NULL in the die() because
we'd have errored out in parse_options() as we're not using
"PARSE_OPT_SUBCOMMAND_OPTIONAL".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
2022-11-08 14:55:30 -05:00
..
2022-06-07 14:10:56 -07:00
2022-04-06 09:42:14 -07:00
2022-10-30 21:04:44 -04:00
2022-10-17 15:46:09 -07:00
2021-10-28 09:57:09 -07:00
2022-09-14 12:56:39 -07:00
2022-10-27 14:51:52 -07:00
2022-10-30 21:04:42 -04:00
2022-09-19 14:35:23 -07:00
2022-10-30 21:04:43 -04:00
2022-10-27 14:51:52 -07:00
2021-11-03 13:25:36 -07:00