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-<.