f22eadf651576744dfe9610b363bcd1a8161334c
hiram
  Mon Mar 2 08:58:53 2020 -0800
correct one line header in usage message no redmine

diff --git src/hg/utils/bedPartition/bedPartition.c src/hg/utils/bedPartition/bedPartition.c
index 9e34048..7c43ece 100644
--- src/hg/utils/bedPartition/bedPartition.c
+++ src/hg/utils/bedPartition/bedPartition.c
@@ -7,45 +7,43 @@
 #include "partitionSort.h"
 #include "basicBed.h"
 #include "sqlNum.h"
 #include "dystring.h"
 #include "portable.h"
 
 
 /* command line options and values */
 static struct optionSpec optionSpecs[] =
 {
     {"parallel", OPTION_INT},
     {NULL, 0}
 };
 static int gParallel = 0;
 
-static void usage(char *msg)
+static void usage()
 /* Explain usage and exit. */
 {
-errAbort("Error: %s\n"
-  "bedPartition - split BED ranges into non-overlapping ranges\n"
+errAbort("bedPartition - split BED ranges into non-overlapping ranges\n"
   "usage:\n"
   "   bedPartition [options] bedFile rangesBed\n"
   "\n"
   "Split ranges in a BED into non-overlapping sets for use in cluster jobs.\n"
   "Output is a BED 3 of the ranges.\n"
   "The bedFile maybe compressed and no ordering is assumed.\n"
   "\n"
   "options:\n"
-  "   -parallel=n - use this many cores for parallel sorting\n"
-  "\n", msg);
+  "   -parallel=n - use this many cores for parallel sorting\n");
 }
 
 struct bedInput
 /* object to read a bed */
 {
     struct pipeline *pl;     /* sorting pipeline */
     struct lineFile *lf;     /* lineFile to pipeline */
     struct bed3 *pending;     /* next bed to read, if not NULL */
 };
 
 static struct bedInput *bedInputNew(char *bedFile)
 /* create object to read BEDs */
 {
 struct bedInput *bi;
 AllocVar(bi);
@@ -139,20 +137,20 @@
 
 while ((bedPart = readPartition(bi)) != NULL)
     {
     fprintf(outFh, "%s\t%d\t%d\n", bedPart->chrom, bedPart->chromStart, bedPart->chromEnd);
     bed3Free(&bedPart);
     }
 carefulClose(&outFh);
 bedInputFree(&bi);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, optionSpecs);
 if (argc != 3)
-    usage("wrong # args");
+    usage();
 gParallel = optionInt("parallel", gParallel);
 bedPartition(argv[1], argv[2]);
 return 0;
 }