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

[PATCH] tools/dev/mlpatch.py (hard coded program name in usage statement to sys.argv[0])

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-06-24 19:18:14 CEST

Hi All,
Find the attached patch.

With regards
Kamesh Jayachandran

[[[
Patch by: Kamesh Jayachandran <kamesh@collab.net>

* tools/dev/mlpatch.py
  (main): Change the hard coded program name('mlpatch.py') in usage
description
          to sys.argv[0].
]]]

Index: tools/dev/mlpatch.py
===================================================================
--- tools/dev/mlpatch.py (revision 20225)
+++ tools/dev/mlpatch.py (working copy)
@@ -109,8 +109,8 @@
 def main():
   if len(sys.argv) == 1:
     sys.stderr.write(
- "usage: mlpatch.py dev|users year month msgno > foobar.patch\n" +
- "example: mlpatch.py dev 2005 01 0001 > issue-XXXX.patch\n" +
+ "usage: %s dev|users year month msgno > foobar.patch\n" % sys.argv[0] +
+ "example: %s dev 2005 01 0001 > issue-XXXX.patch\n" % sys.argv[0] +
     """
     Very annoyingly, the http://svn.haxx.se/ subversion mailing list archives
     mangle inline patches, and provide no raw message download facility

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 24 19:17:28 2006

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.