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

Re: [PATCH] parse-options: make OPT_NUMBER's argh explicit

From
Stephen Boyd <bebarino@gmail.com>
Date
Jun 3, 2009, 19:35 UTC
Message-ID
<780e0a6b0906031235q1438b76cyba1172556c94d1d0@mail.gmail.com>
In-Reply-To
<4A264DFA.3090309@lsrfire.ath.cx>
On Wed, Jun 3, 2009 at 3:18 AM, René Scharfe<rene.scharfe@lsrfire.ath.cx> wrote:
>
> Nice code reduction.  s/NUMBER/INTEGER/ in the commit message?
Oops. Thanks, I'll fix that.
>
> By the way, can the switch be replaced by a simple check for
> PARSE_OPT_NOARG now?
>

This looks possible. I think just set PARSE_OPT_NOARG as the flag of the appropriate OPT_* macros. I'll have to grep the tree for custom uses of OPTION_* though.

Should that be all squashed together? Or maybe that could be a follow up patch?
Previous: René ScharfeNext: René Scharfe
Message 3 of 7 in “parse-options: make OPT_NUMBER's argh explicit”
  1. parse-options: make OPT_NUMBER's argh explicitStephen Boyd, Jun 3, 2009
  2. René ScharfeJun 3, 2009
  3. Stephen BoydJun 3, 2009
  4. René ScharfeJun 3, 2009
  5. 1/2 parse-options: make OPT_INTEGER's argh explicitStephen Boyd, Jun 4, 2009
  6. 2/2 parse-options: simplify usage argh handlingStephen Boyd, Jun 4, 2009
  7. René ScharfeJun 6, 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.