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

Re: Using '--help' for aliases

From
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Date
Jun 21, 2017, 19:14 UTC
Message-ID
<1498072442.32360.20.camel@gmail.com>
In-Reply-To
<20170621185518.nhnqlkbt63hdoate@sigill.intra.peff.net>
On Wed, 2017-06-21 at 14:55 -0400, Jeff King wrote:
Show 7 quoted lines
> It could do that. I think we even discussed it at one point,
> but I
> didn't dig up the thread. However, you have the problem that running
> "man checkout" is likely to clobber the mention of the alias. So the
> question is whether it is more important to tell the user that it's
> an
> alias (and which options the alias is using!),

Now, that's something I didn't think of. Does seem to quite an issue as aliases accept argument this.

I seem to be getting the idea of '--help' just now. All these days, I was actually considering it to be another way of getting to the man page of a command. Have to play with it a little to see in what other ways '--help' could help me! In case there's anything that's so useful about it that I'm missing, let me know.

>  or to show them the
> referred command's manpage.
> 
> -Peff
-- 
Regards,
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Previous: Jeff KingNext: Samuel Lijin
Message 3 of 5 in “Using '--help' for aliases”
  1. Kaartic SivaraamJun 21, 2017
  2. Jeff KingJun 21, 2017
  3. Kaartic SivaraamJun 21, 2017
  4. Samuel LijinJun 22, 2017
  5. brian m. carlsonJun 24, 2017

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.