From cbeca9e3b0205f8805ed0314402f331342ceec12 Mon Sep 17 00:00:00 2001
From: Aaron <aaronquinlan@gmail.com>
Date: Tue, 21 Sep 2010 09:55:57 -0400
Subject: [PATCH] complementBed assumes stdin.

---
 src/complementBed/complementMain.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/complementBed/complementMain.cpp b/src/complementBed/complementMain.cpp
index a384c7eb..ea4fc549 100644
--- a/src/complementBed/complementMain.cpp
+++ b/src/complementBed/complementMain.cpp
@@ -30,15 +30,12 @@ int main(int argc, char* argv[]) {
 	bool showHelp = false;
 
 	// input files
-	string bedFile;
+	string bedFile = "stdin";
 	string genomeFile;
 
-	bool haveBed = false;
+	bool haveBed = true;
 	bool haveGenome = 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]);
 
@@ -57,7 +54,6 @@ int main(int argc, char* argv[]) {
 
  		if(PARAMETER_CHECK("-i", 2, parameterLength)) {
 			if ((i+1) < argc) {
-				haveBed = true;
 				bedFile = argv[i + 1];
 				i++;
 			}
-- 
GitLab