[darwinbuild-changes] [203] trunk/darwinxref/DBPlugin.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:58:32 PDT 2006


Revision: 203
          http://trac.macosforge.org/projects/darwinbuild/changeset/203
Author:   kevin
Date:     2006-10-04 01:58:32 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
- more usage cleanup

Modified Paths:
--------------
    trunk/darwinxref/DBPlugin.c

Modified: trunk/darwinxref/DBPlugin.c
===================================================================
--- trunk/darwinxref/DBPlugin.c	2005-08-29 22:08:20 UTC (rev 202)
+++ trunk/darwinxref/DBPlugin.c	2006-10-04 08:58:32 UTC (rev 203)
@@ -215,6 +215,9 @@
 		}
 	}
 
+	cfprintf(stderr, "usage: %s [-f db] [-b build] <command> ...\n", progname);
+	cfprintf(stderr, "commands:\n");
+
 	CFArrayRef pluginNames = dictionaryGetSortedKeys(plugins);
 	CFIndex i, count = CFArrayGetCount(pluginNames);
 	for (i = 0; i < count; ++i) {
@@ -231,7 +234,7 @@
 #else
 		CFStringRef usage = plugin->usage();
 #endif
-		cfprintf(stderr, "usage: %s [-f db] [-b build] %@ %@\n", progname, name, usage);
+		cfprintf(stderr, "\t%@ %@\n", name, usage);
 		CFRelease(usage);
 	}
 }
@@ -262,8 +265,6 @@
 #else
 		res = plugin->run(args);
 #endif
-	} else {
-		print_usage("darwinxref", argc, argv);
 	}
 	CFRelease(name);
 	return res;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/bba8b4f1/attachment-0001.html


More information about the darwinbuild-changes mailing list