e9612a484d1c5599ca3e1a0687bff72437273c93 kent Tue Mar 27 11:28:14 2012 -0700 Improving usage message which was lacking 'from' clause. diff --git src/utils/raSqlQuery/raSqlQuery.c src/utils/raSqlQuery/raSqlQuery.c index ba65ef5..ee18178 100644 --- src/utils/raSqlQuery/raSqlQuery.c +++ src/utils/raSqlQuery/raSqlQuery.c @@ -31,36 +31,36 @@ static char *clTrackDbRootDir = "~/kent/src/hg/makeDb/trackDb"; static char *clTrackDbRelPath = "../../trackDb*.ra ../trackDb*.ra trackDb*.ra"; void usage() /* Explain usage and exit. */ { errAbort( "raSqlQuery - Do a SQL-like query on a RA file.\n" " raSqlQuery raFile(s) query-options\n" "or\n" " raSqlQuery -db=dbName query-options\n" "Where dbName is a UCSC Genome database like hg18, sacCer1, etc.\n" "One of the following query-options must be specified\n" " -queryFile=fileName\n" - " \"-query=select list,of,fields where field='this'\"\n" + " \"-query=select list,of,fields from file where field='this'\"\n" "The queryFile just has a query in it in the same form as the query option.\n" "The syntax of a query statement is very SQL-like. The most common commands are:\n" " select tag1,tag2,tag3 where tag1 like 'prefix%%'\n" "where the %% is a SQL wildcard. Sorry to mix wildcards. Another command query is\n" - " select count(*) where tag = 'val\n" + " select count(*) from * where tag = 'val\n" "The from list is optional. If it exists it is a list of raFile names\n" " select track,type from *Encode* where type like 'bigWig%%'\n" "Other command line options:\n" " -addFile - Add 'file' field to say where record is defined\n" " -addDb - Add 'db' field to say where record is defined\n" " -strict - Used only with db option. Only report tracks that exist in db\n" " -key=keyField - Use the as the key field for merges and parenting. Default %s\n" " -parent - Merge together inheriting on parentField\n" " -parentField=field - Use field as the one that tells us who is our parent. Default %s\n" " -overrideNeeded - If set records are only overridden field-by-field by later records\n" " if 'override' follows the track name. Otherwiser later record replaces\n" " earlier record completely. If not set all records overridden field by field\n" " -noInheritField=field - If field is present don't inherit fields from parent\n" " -merge - If there are multiple raFiles, records with the same keyField will be\n" " merged together with fields in later files overriding fields in earlier files\n"