d11aff78d1b8b998525b47db166bb5128bc96374 hiram Mon Mar 2 12:57:12 2020 -0800 correct one line header message in usage() no redmine diff --git src/hg/utils/pslRc/pslRc.c src/hg/utils/pslRc/pslRc.c index b9ae60f..bfd8ca7 100644 --- src/hg/utils/pslRc/pslRc.c +++ src/hg/utils/pslRc/pslRc.c @@ -1,55 +1,55 @@ /* pslRc - reverse-complement psl */ #include "common.h" #include "linefile.h" #include "dnautil.h" #include "options.h" #include "psl.h" /* command line options */ static struct optionSpec optionSpecs[] = { {NULL, 0} }; boolean gNoRc = FALSE; -void usage(char *msg) +void usage() /* usage message and abort */ { -errAbort("%s:\n" +errAbort("pslRc - reverse-complement psl\n" + "usage:\n" " pslRc [options] inPsl outPsl\n" "\n" "reverse-complement psl\n" "\n" - "Options:\n", - msg); + "Options:\n"); } void pslRcFile(char *inPslFile, char *outPslFile) /* reverse target and query in a psl file */ { struct lineFile *inLf = pslFileOpen(inPslFile); FILE *outFh = mustOpen(outPslFile, "w"); struct psl *psl; while ((psl = pslNext(inLf)) != NULL) { pslRc(psl); pslTabOut(psl, outFh); pslFree(&psl); } carefulClose(&outFh); lineFileClose(&inLf); } int main(int argc, char** argv) /* entry */ { optionInit(&argc, argv, optionSpecs); if (argc != 3) usage("wrong # args"); gNoRc = optionExists("noRc"); dnaUtilOpen(); pslRcFile(argv[1], argv[2]); return 0; }