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

Usage messages produced by parseopt (Re: [PATCH] Add an optional argument for --color options)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Feb 15, 2010, 01:23 UTC
Message-ID
<20100215012316.GA16643@progeny.tock>
In-Reply-To
<ca433831002140658r30aa539fy5480cae8298d6d6c@mail.gmail.com>
Mark Lodato wrote:
Show 5 quoted lines
> Would it be worthwhile to switch to
> parse_opt?  This may make the code cleaner, and it would definitely
> make the command-line interface more consistent with the rest of the
> suite.  From a user's point of view, the biggest win would be "-h"
> printing all of the options, like all the non-diff commands do.

Side note: I actually prefer the shorter usage messages, since when I use the "-h" option, I tend to be just looking for a reminder. Am I alone in this? Would there be interest in a "git <whatever> --help=short" option or similar?

Jonathan
Previous: Jeff KingNext: Jeff King
Message 7 of 11 in “Add an optional argument for --color options”
  1. Add an optional argument for --color optionsMark Lodato, Feb 13, 2010
  2. Jeff KingFeb 14, 2010
  3. Jonathan NiederFeb 14, 2010
  4. Mark LodatoFeb 14, 2010
  5. Jonathan NiederFeb 15, 2010
  6. Jeff KingFeb 15, 2010
  7. Usage messages produced by parseopt (Re: [PATCH] Add an optional argument for --color options)Jonathan Nieder, Feb 15, 2010
  8. Jeff KingFeb 15, 2010
  9. Junio C HamanoFeb 15, 2010
  10. Junio C HamanoFeb 14, 2010
  11. Mark LodatoFeb 14, 2010

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.