[Zope3-checkins] CVS: Zope3/src/zope/fssync - main.py:1.8
Guido van Rossum
guido@python.org
Tue, 13 May 2003 17:16:23 -0400
Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv15178
Modified Files:
main.py
Log Message:
Add check for missing command.
=== Zope3/src/zope/fssync/main.py 1.7 => 1.8 ===
--- Zope3/src/zope/fssync/main.py:1.7 Tue May 13 17:02:21 2003
+++ Zope3/src/zope/fssync/main.py Tue May 13 17:16:22 2003
@@ -84,6 +84,9 @@
print __doc__
return 0
+ if not args:
+ raise Usage("missing command argument")
+
command = args[0]
if command not in command_table:
hits = []