src/utils/raSqlQuery/raSqlQuery.c 1.19
1.19 2009/11/22 02:06:06 kent
Adding a little more error checking to command line.
Index: src/utils/raSqlQuery/raSqlQuery.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/raSqlQuery/raSqlQuery.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -b -B -U 4 -r1.18 -r1.19
--- src/utils/raSqlQuery/raSqlQuery.c 22 Nov 2009 02:04:06 -0000 1.18
+++ src/utils/raSqlQuery/raSqlQuery.c 22 Nov 2009 02:06:06 -0000 1.19
@@ -493,9 +493,9 @@
int fileCount;
if (clDb)
{
if (argc != 1)
- usage();
+ errAbort("You can't specify any input files with the -db option.");
struct dbPath *db, *dbList = getDbPathList(clTrackDbRootDir);
boolean gotAny = FALSE;
for (db = dbList; db != NULL; db = db->next)
{