From 86d7767ec73de5651d422168de24c2702e26b672 Mon Sep 17 00:00:00 2001 From: Aaron <aaronquinlan@gmail.com> Date: Tue, 21 Sep 2010 10:00:04 -0400 Subject: [PATCH] overlap assumes stdin. --- src/overlap/overlap.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/overlap/overlap.cpp b/src/overlap/overlap.cpp index 25f6aef0..ebb5da76 100644 --- a/src/overlap/overlap.cpp +++ b/src/overlap/overlap.cpp @@ -35,16 +35,14 @@ void ComputeOverlaps(istream &input, short &s1Col, short &e1Col, short &s2Col, s int main(int argc, char* argv[]) { // input files - string inFile; + string inFile = "stdin"; string columns; // our configuration variables bool showHelp = false; - bool haveInFile = false; + bool haveInFile = true; bool haveColumns = false; - // check to see if we should print out some help - if(argc <= 1) showHelp = true; for(int i = 1; i < argc; i++) { int parameterLength = (int)strlen(argv[i]); @@ -64,7 +62,6 @@ int main(int argc, char* argv[]) { if(PARAMETER_CHECK("-i", 2, parameterLength)) { if ((i+1) < argc) { - haveInFile = true; inFile = argv[i + 1]; i++; } -- GitLab