cerr<<"Usage: "<<PROGRAM_NAME<<" [OPTIONS] -a <a.bed> -b <b.bed>"<<endl<<endl;
cerr<<"OPTIONS: "<<endl;
cerr<<"\t"<<"-s\t\t\t"<<"Force strandedness. Only report hits in B that overlap A on the same strand."<<endl<<"\t\t\t\tBy default, overlaps are reported without respect to strand."<<endl<<endl;
cerr<<"\t"<<"-u\t\t\t"<<"Write ORIGINAL a.bed entry ONCE if ANY overlap with B.bed."<<endl<<"\t\t\t\tIn other words, just report the fact >=1 hit was found."<<endl<<endl;
cerr<<"\t"<<"-v \t\t\t"<<"Only report those entries in A that have NO OVERLAP in B."<<endl<<"\t\t\t\tSimilar to grep -v."<<endl<<endl;
cerr<<"\t"<<"-f (e.g. 0.05)\t\t"<<"Minimum overlap req'd as fraction of a.bed."<<endl<<"\t\t\t\tDefault is 1E-9 (effectively 1bp)."<<endl<<endl;
cerr<<"\t"<<"-r \t\t\t"<<"Require that the fraction overlap be reciprocal for A and B."<<endl<<"\t\t\t\tIn other words, if -f is 0.90 and -r is used, this requires that"<<endl<<"\t\t\t\tB overlap 90% of A and A _also_ overlaps 90% of B."<<endl<<endl;
cerr<<"\t"<<"-c \t\t\t"<<"For each entry in A, report the number of hits in B while restricting to -f."<<endl<<"\t\t\t\tReports 0 for A entries that have no overlap with B."<<endl<<endl;
cerr<<"\t"<<"-wa \t\t\t"<<"Write the original entry in A for each overlap."<<endl<<endl;
cerr<<"\t"<<"-wb \t\t\t"<<"Write the original entry in B for each overlap."<<endl<<"\t\t\t\tUseful for knowing _what_ A overlaps. Restricted by -f."<<endl<<endl;
cerr<<"NOTES: "<<endl;
cerr<<"\t"<<"-i stdin\t\t"<<"Allows BED file A to be read from stdin. E.g.: cat a.bed | intersectBed -a stdin -b B.bed"<<endl<<endl;