0e69037441c493289ea56f19a2e26ed24c80152a hiram Mon Mar 2 10:58:04 2020 -0800 correct one line header message in usage() no redmine diff --git src/hg/utils/overlapSelect/overlapSelect.c src/hg/utils/overlapSelect/overlapSelect.c index 1c60ada..1c15cd8 100644 --- src/hg/utils/overlapSelect/overlapSelect.c +++ src/hg/utils/overlapSelect/overlapSelect.c @@ -346,46 +346,46 @@ else doItemOverlaps(inCar, outFh, dropFh); inCar->carFree(&inCar); if (statsOutput && outputBoth) outputStatsSelNotUsed(outFh); carefulClose(&outFh); carefulClose(&dropFh); /* enable for memory analysis */ #if 0 selectTableFree(); #endif } -void usage(char *msg) +void usage() /* usage message and abort */ { static char *usageMsg = #include "usage.msg" ; -errAbort("%s: %s", msg, usageMsg); +errAbort("%s", usageMsg); } /* entry */ int main(int argc, char** argv) { char *selectFile, *inFile, *outFile, *dropFile; optionInit(&argc, argv, optionSpecs); if (argc != 4) - usage("wrong # args"); + usage(); selectFile = argv[1]; inFile = argv[2]; outFile = argv[3]; /* select file options */ if (optionExists("selectFmt") && optionExists("selectCoordCols")) errAbort("can't specify both -selectFmt and -selectCoordCols"); if (optionExists("selectFmt")) selectFmt = parseFormatSpec(optionVal("selectFmt", NULL)); else if (optionExists("selectCoordCols")) { selectCoordCols = coordColsParseSpec("selectCoordCols", optionVal("selectCoordCols", NULL)); selectFmt = COORD_COLS_FMT;