From a0250c315276a46d1ee4827e88ff4c77680444d4 Mon Sep 17 00:00:00 2001
From: Aaron <aaronquinlan@gmail.com>
Date: Wed, 27 Jan 2010 20:22:20 -0500
Subject: [PATCH] Fixed command line bug in bamToBed.

---
 src/bamToBed/bamToBed.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bamToBed/bamToBed.cpp b/src/bamToBed/bamToBed.cpp
index 0a6951d8..3a5d9766 100755
--- a/src/bamToBed/bamToBed.cpp
+++ b/src/bamToBed/bamToBed.cpp
@@ -71,8 +71,8 @@ int main(int argc, char* argv[]) {
 			if ((i+1) < argc) {
 				haveBam = true;
 				bamFile = argv[i + 1];
+				i++;
 			}
-			i++;
 		}
 		else if(PARAMETER_CHECK("-bedpe", 6, parameterLength)) {
 				writeBedPE = true;
-- 
GitLab