ef3707f0ca7e1592d542f28fdd4b254bf104d854 hiram Mon Mar 2 10:36:00 2020 -0800 correct one line header message in usage() no redmine diff --git src/hg/utils/bedToPsl/bedToPsl.c src/hg/utils/bedToPsl/bedToPsl.c index 5240f38..cd8e4df 100644 --- src/hg/utils/bedToPsl/bedToPsl.c +++ src/hg/utils/bedToPsl/bedToPsl.c @@ -9,35 +9,34 @@ #include "sqlNum.h" #include "hash.h" #include "linefile.h" /* command line option specifications */ static struct optionSpec optionSpecs[] = { {"tabs", OPTION_BOOLEAN}, {"keepQuery", OPTION_BOOLEAN}, {NULL, 0} }; /* command line options */ static boolean keepQuery = FALSE; static boolean doTabs = FALSE; -void usage(char *msg) +void usage() /* Explain usage and exit. */ { -errAbort("%s:\n" - "bedToPsl - convert bed format files to psl format\n" +errAbort("bedToPsl - convert bed format files to psl format\n" "usage:\n" " bedToPsl [options] chromSizes bedFile pslFile\n" "\n" "Convert a BED file to a PSL file. This the result is an alignment.\n" " It is intended to allow processing by tools that operate on PSL.\n" "If the BED has at least 12 columns, then a PSL with blocks is created.\n" "Otherwise single-exon PSLs are created.\n\n" "Options:\n" "-tabs - use tab as a separator\n" "-keepQuery - instead of creating a fake query, create PSL with identical query and\n" " target specs. Useful if bed features are to be lifted with pslMap and one \n" " wants to keep the source location in the lift result.\n" , msg); } static struct hash *loadChromSizes(char *chromSizesFile) @@ -136,24 +135,24 @@ FILE *pslFh = mustOpen(pslFile, "w"); char *line; while (lineFileNextReal(bedLf, &line)) cnvBedRec(line, chromSizes, pslFh); carefulClose(&pslFh); lineFileClose(&bedLf); } int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, optionSpecs); if (argc != 4) - usage("Too few arguments"); + usage(); if (optionExists("tabs")) doTabs = TRUE; if (optionExists("keepQuery")) keepQuery = TRUE; cnvBedToPsl(argv[1], argv[2], argv[3]); return 0; }