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

[PATCH] svnperms.py Print usage and exit when invoked without args

From: Jim Sokoloff <jim_at_sokoloff.com>
Date: 2003-09-09 23:18:01 CEST

LOG MESSAGE:

Print usage and exit when invoked with no parameters

Index: svnperms.py
===================================================================
--- svnperms.py (revision 7021)
+++ svnperms.py (working copy)
@@ -249,6 +249,11 @@
     obj.transaction = None
     obj.revision = None
     obj.author = None
+
+ if (len(opts) == 0):
+ sys.stdout.write(USAGE)
+ sys.exit(-1)
+
     for opt, val in opts:
         if opt == "-f":
             obj.filename = val

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 9 23:20:04 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.