860c752347c2a0ccc99794d772babffae640dab5 hiram Mon Mar 2 12:54:27 2020 -0800 correct one line header message in usage() no redmine diff --git src/hg/utils/pslMapPostChain/pslMapPostChain.c src/hg/utils/pslMapPostChain/pslMapPostChain.c index e7b6912..269a349 100644 --- src/hg/utils/pslMapPostChain/pslMapPostChain.c +++ src/hg/utils/pslMapPostChain/pslMapPostChain.c @@ -1,36 +1,37 @@ /* pslMapPostChain - Post genomic pslMap (TransMap) chaining. */ #include "common.h" #include "linefile.h" #include "options.h" #include "hash.h" #include "psl.h" #include -void usage(char *msg) +void usage() /* Explain usage and exit. */ { -errAbort("%s:\n\n" +errAbort("postTransMapChain - Post genomic pslMap (TransMap) chaining.\n" + "usage:\n" " postTransMapChain [options] inPsl outPsl\n" "\n" "Post genomic pslMap (TransMap) chaining. This takes transcripts\n" "that have been mapped via genomic chains adds back in\n" "blocks that didn't get include in genomic chains due\n" "to complex rearrangements or other issues.\n" "\n" - "This program has not seen much use and may not do what you want\n", msg); + "This program has not seen much use and may not do what you want\n"); } static struct optionSpec optionSpecs[] = { {"h", OPTION_BOOLEAN}, {"help", OPTION_BOOLEAN}, {NULL, 0} }; /* max distance to attempt to chain over */ static int maxAdjacentDistance = 50*1000*1000; // 50mb /* special status used to in place of chain */ static const int CHAIN_NOT_HERE = -1; static const int CHAIN_CAN_NOT = -2; @@ -300,23 +301,23 @@ struct hashEl *hel; struct hashCookie cookie = hashFirst(pslsByQName); while ((hel = hashNext(&cookie)) != NULL) { struct psl** queryPsls = (struct psl**)&hel->val; chainQuery(queryPsls, outPslFh); } carefulClose(&outPslFh); } int main(int argc, char **argv) /* entry */ { optionInit(&argc, argv, optionSpecs); if (optionExists("h") || optionExists("help")) - usage("usage"); + usage(); if (argc != 3) - usage("wrong # of args"); + usage(); pslMapPostChain(argv[1], argv[2]); return 0; }