[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Trivial --help output for showchange.pl

From: Colin Watson <cjwatson_at_flatline.org.uk>
Date: 2003-10-19 15:42:59 CEST

* tools/client-side/showchange.pl: Add trivial -h, --help output.

Index: tools/client-side/showchange.pl
===================================================================
--- tools/client-side/showchange.pl (revision 7446)
+++ tools/client-side/showchange.pl (working copy)
@@ -8,6 +8,14 @@
 # $ showchange.pl REVISION [PATH|URL]
 
 
+if ($ARGV[0] eq '-h' or $ARGV[0] eq '--help') {
+ print <<EOF;
+Show the log message and diff for a revision.
+usage: $0 REVISION [PATH|URL]
+EOF
+ exit 0;
+}
+
 my $revision = shift || die ("Revision argument required.\n");
 
 my $url = shift || "";

Thanks,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 19 15:43:43 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.