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

[BUGLET] Short form of options with an optional parameter are not very clear

From
YDYann Dirson <dirson@bertin.fr>
Date
Aug 29, 2013, 09:40 UTC
Message-ID
<20130829114052.2e0ec810@chalon.bertin.fr>

I just stumbled over the "git status -uno" form, and it took me some time to realize that "no" was a parameter to -u, rather than aggregated (and undocumented) -n and -o.

Whereas the manpage does document the "-u[<mode>]" syntax, which dissipate the misunderstanding, --help output does not, listing "-u" in a way that appears not to take any option.

Looks like the --help output would gain from having the optional parameter displayed in the short form...

-- 
Yann Dirson - Bertin Technologies
Message 1 of 1 in “[BUGLET] Short form of options with an optional parameter are not very clear”
  1. Yann DirsonAug 29, 2013

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.