builtin/remote.c: parse options in 'rename'
commitc6dddb34b57d85cc57f2efae98aed2b2539e7acd
authorTaylor Blau <me@ttaylorr.com>
Thu, 3 Mar 2022 22:25:16 +0000 (3 17:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Mar 2022 22:44:04 +0000 (3 14:44 -0800)
tree09f42fed15273ad5cea2f8fb8e0df0a51a8dae28
parent715d08a9e51251ad8290b181b6ac3b9e1f9719d7
builtin/remote.c: parse options in 'rename'

The 'git remote rename' command doesn't currently take any command-line
arguments besides the existing and new name of a remote, and so has no
need to call parse_options().

But the subsequent patch will add a `--[no-]progress` option, in which
case we will need to call parse_options().

Do so now so as to avoid cluttering the following patch with noise, like
adjusting setting `rename.{old,new}_name` to argv[0] and argv[1], since
parse_options handles advancing argv past the name of the sub-command.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c