[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Make usage message more legible



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv18654/lib/mixminion

Modified Files:
	Main.py 
Log Message:
Make usage message more legible

Index: Main.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Main.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Main.py	3 Jan 2003 05:14:47 -0000	1.16
+++ Main.py	5 Jan 2003 01:28:27 -0000	1.17
@@ -144,8 +144,10 @@
         # FFFF we could do better in generating a usage message here.
         cmds = _COMMANDS.keys()
         cmds.sort()
-        sys.stderr.write("Usage: %s {%s} [arguments]\n" %(
-            args[0], "|".join(cmds)))
+        sys.stderr.write("Usage: %s <command> [arguments]\n" %args[0])
+        sys.stderr.write("Where <command> is one of:\n")
+        for c in cmds:
+            sys.stderr.write("     %s\n"%c)
         sys.exit(1)
 
     # Read the module and function.