src/utils/bigWigInfo/bigWigInfo.c 1.2

1.2 2009/09/08 19:50:24 kent
Adding udcDir to the command line as an option.
Index: src/utils/bigWigInfo/bigWigInfo.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigWigInfo/bigWigInfo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 4 -r1.1 -r1.2
--- src/utils/bigWigInfo/bigWigInfo.c	29 Jun 2009 17:50:50 -0000	1.1
+++ src/utils/bigWigInfo/bigWigInfo.c	8 Sep 2009 19:50:24 -0000	1.2
@@ -3,8 +3,9 @@
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "localmem.h"
+#include "udc.h"
 #include "bigWig.h"
 
 
 static char const rcsid[] = "$Id$";
@@ -16,13 +17,14 @@
   "bigWigInfo - Print out information about bigWig file.\n"
   "usage:\n"
   "   bigWigInfo file.bw\n"
   "options:\n"
-  "   -xxx=XXX\n"
+  "   -udcDir=/dir/to/cache - place to put cache for remote bigBed/bigWigs\n"
   );
 }
 
 static struct optionSpec options[] = {
+   {"udcDir", OPTION_STRING},
    {NULL, 0},
 };
 
 void bigWigInfo(char *fileName)
@@ -44,8 +46,9 @@
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
+udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
 if (argc != 2)
     usage();
 bigWigInfo(argv[1]);
 return 0;