Browse Source

Fix an error

rdb 16 years ago
parent
commit
66c231e97f
3 changed files with 3 additions and 3 deletions
  1. 1 1
      direct/src/p3d/pmerge.py
  2. 1 1
      direct/src/p3d/ppackage.py
  3. 1 1
      direct/src/p3d/ppatcher.py

+ 1 - 1
direct/src/p3d/pmerge.py

@@ -55,7 +55,7 @@ for opt, arg in opts:
     elif opt == '-h':
     elif opt == '-h':
         usage(0)
         usage(0)
     else:
     else:
-        print 'illegal option: ' + flag
+        print 'illegal option: ' + arg
         sys.exit(1)
         sys.exit(1)
 
 
 inputDirs = []
 inputDirs = []

+ 1 - 1
direct/src/p3d/ppackage.py

@@ -161,7 +161,7 @@ for opt, arg in opts:
     elif opt == '-h':
     elif opt == '-h':
         usage(0)
         usage(0)
     else:
     else:
-        print 'illegal option: ' + flag
+        print 'illegal option: ' + arg
         sys.exit(1)
         sys.exit(1)
 
 
 if not args:
 if not args:

+ 1 - 1
direct/src/p3d/ppatcher.py

@@ -80,7 +80,7 @@ for opt, arg in opts:
     elif opt == '-h':
     elif opt == '-h':
         usage(0)
         usage(0)
     else:
     else:
-        print 'illegal option: ' + flag
+        print 'illegal option: ' + arg
         sys.exit(1)
         sys.exit(1)
 
 
 packageNames = args
 packageNames = args