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

Re: [PATCH] config: --replace-all with one argument exits properly with a better message.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 14, 2009, 20:53 UTC
Message-ID
<7vtz5vakrp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1236998552.9952.2.camel@luis-desktop>
Carlos Rica <jasampler@gmail.com> writes:
> 'config --replace-all ONE_ARG' was being treated as 'config NAME VALUE',
> showing the error "key does not contain a section: --replace-all".

Hmm, I am getting "error: wrong number of arguments" followed by the long and somewhat annoying "usage" from the parseopt table dump.

Ahh, that is because I am running the version from 'next', which contains the fc/parseopt-config topic that rewrites the option parser and error checking almost completely.

Can you work with Felipe to see if this is still needed, or needs to be fixed in a different way? It could be that your tests may already pass over there on 'next'. I didn't check.

Previous: Carlos RicaNext: Felipe Contreras
Message 2 of 7 in “config: --replace-all with one argument exits properly with a better message.”
  1. config: --replace-all with one argument exits properly with a better message.Carlos Rica, Mar 14, 2009
  2. Junio C HamanoMar 14, 2009
  3. Felipe ContrerasMar 14, 2009
  4. Junio C HamanoMar 15, 2009
  5. Felipe ContrerasMar 15, 2009
  6. Carlos RicaMar 16, 2009
  7. Felipe ContrerasMar 16, 2009

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.