11cd242e75d51c384ededd99808435593abf85de
hiram
  Mon Mar 2 13:09:15 2020 -0800
correct one line header message in usage() refs #25071

diff --git src/hg/pslSwap/pslSwap.c src/hg/pslSwap/pslSwap.c
index 2da52a2..a759376 100644
--- src/hg/pslSwap/pslSwap.c
+++ src/hg/pslSwap/pslSwap.c
@@ -1,59 +1,57 @@
 /* pslSwap - reverse target and query in psls */
 
 #include "common.h"
 #include "linefile.h"
 #include "dnautil.h"
 #include "options.h"
 #include "psl.h"
 
 /* command line options */
 static struct optionSpec optionSpecs[] = {
     {"noRc", OPTION_BOOLEAN},
     {NULL, 0}
 };
 boolean gNoRc = FALSE;
 
-void usage(char *msg)
+void usage()
 /* usage message and abort */
 {
-errAbort("%s:\n"
+errAbort("pslSwap - swap target and query in psls\n"
+         "usage:\n"
          "    pslSwap [options] inPsl outPsl\n"
          "\n"
-         "Swap target and query in psls\n"
-         "\n"
          "Options:\n"
          "  -noRc - don't reverse complement untranslated alignments to\n"
          "   keep target positive strand.  This will make the target strand\n"
-         "   explict.\n",
-         msg);
+         "   explict.\n");
 }
 
 void pslSwapFile(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)
     {
     pslSwap(psl, gNoRc);
     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");
+    usage();
 gNoRc = optionExists("noRc");
 dnaUtilOpen();
 pslSwapFile(argv[1], argv[2]);
 return 0;
 }