[Zope3-checkins] CVS: Zope3/utilities - batch-cvs-commit:1.3

Fred L. Drake, Jr. fred at zope.com
Tue Feb 24 12:38:38 EST 2004


Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv3944

Modified Files:
	batch-cvs-commit 
Log Message:
last minute support for a help message broke handling of a file name
on the command line; fixed and reverted changes to the documentation


=== Zope3/utilities/batch-cvs-commit 1.2 => 1.3 ===
--- Zope3/utilities/batch-cvs-commit:1.2	Tue Feb 24 12:07:47 2004
+++ Zope3/utilities/batch-cvs-commit	Tue Feb 24 12:38:37 2004
@@ -4,10 +4,11 @@
 USAGE = """
 Usage:
 
-    %(program)s [<file]
+    %(program)s [file]
 
 Perform a set of CVS commits using a listing of filenames and checkin
-comments specified in an input stream given at stdin.
+comments specified in 'file'.  If 'file' is not given or is '-',
+standard input is used.
 
 The input is a series of commit descriptions.  Each description is a
 set of status lines as printed by the 'cvs up' command, consisting of
@@ -72,11 +73,11 @@
     if len(args) > 1:
         print >>sys.stderr, "too many arguments"
         usage(sys.stderr, 2)
-    elif argv:
+    elif args:
         # read from stdin by default
-        f = '-'
+        f = args[0]
     else:
-        f = argv[1]
+        f = '-'
 
     if f == '-':
         f = sys.stdin




More information about the Zope3-Checkins mailing list