b825492ab638f55020b2054d445c8009cd09c94e kent Fri Aug 2 15:26:02 2019 -0700 Improving usage message. diff --git src/tabFile/tabToTabDir/tabToTabDir.c src/tabFile/tabToTabDir/tabToTabDir.c index df05276..97a9e12 100644 --- src/tabFile/tabToTabDir/tabToTabDir.c +++ src/tabFile/tabToTabDir/tabToTabDir.c @@ -9,42 +9,39 @@ #include "ra.h" #include "fieldedTable.h" void usage() /* Explain usage and exit. */ { errAbort( "tabToTabDir - Convert a large tab-separated table to a directory full of such tables according\n" "to a specification.\n" "usage:\n" " tabToTabDir in.tsv spec.txt outDir\n" "where:\n" " in.tsv is a tab-separated input file. The first line is the label names and may start with #\n" " spec.txt is a file that says what columns to put into the output, described in more detail below\n" " outDir is a directory that will be populated with tab-separated files\n" -"spec.ra file format:\n" -" This is in a ra format with one stanza per output table.\n" +"The spec.txt file contains one blank line separated stanza per output table.\n" "Each stanza should look like:\n" " tableName key-column\n" " columnName1 sourceField1\n" " columnName2 sourceField2\n" " ...\n" -" if the sourceField is missing it is assumed it is named to be a column of the same name in in.tsv\n" -" The sourceField can either be a column name in the in.tsv, or a string enclosed literal or something\n" -" more complicated enclosed in an eval() call\n" -"options:\n" -" -xxx=XXX\n" +"if the sourceField is missing it is assumed to be a column of the same name in in.tsv\n" +"The sourceField can either be a column name in the in.tsv, or a string enclosed literal\n" +"or an @ followed by a table name, in which case it refers to the key of that table\n" ); } /* Command line validation table. */ static struct optionSpec options[] = { {NULL, 0}, }; boolean allStringsSame(char **aa, char **bb, int count) /* Return true if first count of strings between aa and bb are the same */ { int i; for (i=0; i<count; ++i) if (!sameString(aa[i], bb[i]))