From: Junio C Hamano Date: Thu, 08 Jan 2015 20:14:41 GMT Subject: Re: [PATCH 1/2] remote: Remove -v/--verbose option from git remote show synopsis Message-ID: In-Reply-To: <54AED7C3.8010604@web.de> René Scharfe writes: > Am 08.01.2015 um 18:57 schrieb Alexander Kuleshov: >> git remote show doesn't use -v/--verbose option > > Hmm, but it does? > > $ git version > git version 2.2.1 > $ git remote show > origin > $ git remote -v show > origin git://git.kernel.org/pub/scm/git/git.git (fetch) > origin git://git.kernel.org/pub/scm/git/git.git (push) > > Perhaps you meant the following variant? The changed line documents > the one above, though (-v before show). > > $ git remote show -v > error: unknown switch `v' > usage: git remote show [] > > -n do not query remotes Ahh, I misread the patch. Thanks. >> diff --git a/builtin/remote.c b/builtin/remote.c >> index 46ecfd9..978c645 100644 >> --- a/builtin/remote.c >> +++ b/builtin/remote.c >> @@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = { >> N_("git remote rename "), >> N_("git remote remove "), >> N_("git remote set-head (-a | --auto | -d | --delete |)"), >> - N_("git remote [-v | --verbose] show [-n] "), >> + N_("git remote show [-n] "), >> N_("git remote prune [-n | --dry-run] "), >> N_("git remote [-v | --verbose] update [-p | --prune] [( | )...]"), >> N_("git remote set-branches [--add] ..."), >> I however have a bit larger question. Does it make sense to have [-v/--verbose] in front of some but not all of the subcommands? For example, the above snippet gives me an impression that $ git remote -v prune -n origin should not work, but that does not seem to be the case.