[AD] New options for dat

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



Hi,

This patch adds a -? and --help options to the dat util.

Do you guys think that a -r (recursive) option should be useful?

--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/
Index: dat.c
===================================================================
RCS file: /cvsroot/alleg/allegro/tools/dat.c,v
retrieving revision 1.6
diff -u -b -r1.6 dat.c
--- dat.c	2001/05/31 07:51:20	1.6
+++ dat.c	2001/10/07 15:39:23
@@ -690,6 +690,14 @@
       if (argv[c][0] == '-') {
 
 	 switch (utolower(argv[c][1])) {
+	    case '-':
+	       if (stricmp(argv[c]+2, "help") == 0) {
+	          usage();
+	          return 1;
+	       }
+	 	case '?':
+	 	   usage();
+	 	   return 1;
 
 	    case 'd':
 	       if (stricmp(argv[c]+2, "ither") == 0) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/