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

Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 14, 2005, 22:14 UTC
Message-ID
<7vbr0mx4fj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051114164505.GF9131@raven.localdomain>
Kevin Geiss <kevin@desertsol.com> writes:
Show 8 quoted lines
>  sub usage {
>  	print STDERR <<END;
> -Usage: GIT_DIR=/path/to/.gi ${\basename $0}      # fetch/update GIT from CVS
> -       [-h] [-p] [ parent ] commit
> +Usage: GIT_DIR=/path/to/.git ${\basename $0} [-h] [-p] [-v] [-c] [ parent ] commit
>  END
>  	exit(1);
>  }

I hate to be nitpicky, but this slurps in File::Basename (9Kbytes) only to shorten the displayed command name.

I personally do not like programs that shorten $0 (or in C argv[0]) when they identify themselves. This is probably just me, but I was bitten by such programs too many times while debugging them, after wasting too many hours only to find that I was not running the executable I thought I was running but something else that happened to be earlier on my PATH X-<.

Previous: Kevin GeissNext: Martin Langhoff
Message 4 of 8 in “eth”
  1. Kevin GeissNov 14, 2005
  2. 1/1 git-cvsexportcommit.perl: Fix usage() output.Kevin Geiss, Nov 14, 2005
  3. Kevin GeissNov 14, 2005
  4. Junio C HamanoNov 14, 2005
  5. Martin LanghoffNov 14, 2005
  6. Junio C HamanoNov 14, 2005
  7. Martin LanghoffNov 15, 2005
  8. Kevin GeissNov 14, 2005

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.