test-submodule: remove command line handling for check-name
commit6af2c4ad45083df07b81ebb2c449f97f0bb69315
authorVictoria Dye <vdye@github.com>
Thu, 18 Jan 2024 01:55:16 +0000 (18 01:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jan 2024 18:17:10 +0000 (18 10:17 -0800)
treee2989dee7809b4991a185197b9ab27fad9eb7505
parent13320ff610b4083341175c4f8e636a1bc52145f5
test-submodule: remove command line handling for check-name

The 'check-name' subcommand to 'test-tool submodule' is documented as being
able to take a command line argument '<name>'. However, this does not work -
and has never worked - because 'argc > 0' triggers the usage message in
'cmd__submodule_check_name()'. To simplify the helper and avoid future
confusion around proper use of the subcommand, remove any references to
command line arguments for 'check-name' in usage strings and handling in
'check_name()'.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-submodule.c