git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] parse-options: lose an unnecessary space in an error message

From
Jacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>
Date
Feb 5, 2020, 20:11 UTC
Message-ID
<CAAwZSqCN9WShN4e-0i1Q0CwonPda_bysGjwyQcQC6-JC_U_KTg@mail.gmail.com>
In-Reply-To
<xmqqv9ok6fa1.fsf@gitster-ct.c.googlers.com>
Hi,

Actually I prefer to keep the parentheses, it makes better sense to me. It feels correct with them when I speak it loudly, incorrect without.

BR,
Jacques
-- 
Monsieur Biz
@jacquesbh
+33 (0)6 75 54 11 97
GPG : https://keybase.io/jacquesbh


Le mer. 5 févr. 2020 à 19:49, Junio C Hamano <gitster@pobox.com> a écrit :
>
> Jacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com> writes:
>
> > Signed-off-by: Jacques Bodin-Hullin <j.bodinhullin@monsieurbiz.com>
> > ---
> >  parse-options.c          | 4 ++--
> >  t/t0040-parse-options.sh | 4 ++--
> >  2 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/parse-options.c b/parse-options.c
> > index b42f54d48b96c..71dbe84d896b4 100644
> > --- a/parse-options.c
> > +++ b/parse-options.c
> > @@ -420,7 +420,7 @@ static void check_typos(const char *arg, const struct option *options)
> >               return;
> >
> >       if (starts_with(arg, "no-")) {
> > -             error(_("did you mean `--%s` (with two dashes ?)"), arg);
> > +             error(_("did you mean `--%s` (with two dashes)?"), arg);
>
> Makes sense.  Not just there is an extra SP before the question
> mark, the question mark is about the whole sentence, so pushing
> it out of the parentheses also is a good change.
>
> We might even want to lose the parentheses altogether, i.e.
>
>         did you mean `--%s` with two dashes?
>
> Hmm?
>
> Thanks.
Previous: Junio C HamanoNext: Jeff King
Message 7 of 8 in “Typo `dashes ?` -> `dashes?`”
  1. Typo `dashes ?` -> `dashes?`Jacques Bodin-Hullin, Oct 14, 2018
  2. Jeff KingOct 15, 2018
  3. Change writing styleJacques Bodin-Hullin, Nov 16, 2018
  4. Junio C HamanoNov 17, 2018
  5. parse-options: lose an unnecessary space in an error messageJacques Bodin-Hullin, Feb 5, 2020
  6. Junio C HamanoFeb 5, 2020
  7. Jacques Bodin-HullinFeb 5, 2020
  8. Jeff KingOct 17, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.