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

Re: [PATCH 01/25] Add a simple option parser.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 17, 2007, 07:24 UTC
Message-ID
<20071017072419.GZ13801@spearce.org>
In-Reply-To
<1192523721-18985-1-git-send-email-madcoder@debian.org>
Pierre Habouzit <madcoder@debian.org> wrote:
> The option parser takes argc, argv, an array of struct option
> and a usage string. ...
OK, I've chewed down some version of this series.  ;-)

To be more specific I fetched ph/parseopt (11b83dc4da) from your tree at git://git.madism.org/git.git and split it apart somewhat. All of the patches were rebased onto my most recent master but I also yanked the two that impacted the builtin-fetch series out and layered them over a merge of db/fetch-pack and my version of your ph/parseopt series.

Why? Well I want to keep our options open about which series graduates to master first. Although builtin-fetch has been cooking for a while there's been a number of issues with that code. There exists a (perhaps small) chance that ph/parseopt will be ready before db/fetch-pack.

Currently ph/parseopt is in pu. Tomorrow I'll look at the usage strings in more depth and see if any improvements can be easily made. I already made one suggested by Dscho in builtin-add.

-- 
Shawn.
Previous: Alex RiesenNext: Pierre Habouzit
Message 23 of 24 in “[parse-options] proposal for merge, take 1”
  1. Pierre HabouzitOct 16, 2007
  2. Pierre HabouzitOct 16, 2007
  3. Pierre HabouzitOct 16, 2007
  4. Pierre HabouzitOct 16, 2007
  5. Johannes SchindelinOct 16, 2007
  6. René ScharfeOct 16, 2007
  7. Johannes SchindelinOct 16, 2007
  8. Pierre HabouzitOct 16, 2007
  9. Nicolas PitreOct 16, 2007
  10. René ScharfeOct 16, 2007
  11. Nicolas PitreOct 16, 2007
  12. Pierre HabouzitOct 16, 2007
  13. Shawn O. PearceOct 17, 2007
  14. Johannes SchindelinOct 17, 2007
  15. Michael WittenOct 16, 2007
  16. Michael WittenOct 16, 2007
  17. Johannes SchindelinOct 16, 2007
  18. Michael WittenOct 16, 2007
  19. Pierre HabouzitOct 16, 2007
  20. Alex RiesenOct 16, 2007
  21. Pierre HabouzitOct 16, 2007
  22. Alex RiesenOct 17, 2007
  23. Shawn O. PearceOct 17, 2007
  24. Pierre HabouzitOct 17, 2007

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.