diff --git a/src/TrimBam.cpp b/src/TrimBam.cpp index 4e4bd60..a8884c1 100644 --- a/src/TrimBam.cpp +++ b/src/TrimBam.cpp @@ -111,7 +111,7 @@ int TrimBam::execute(int argc, char ** argv) int c = 0; int n_option_index = 0; // Process any additional parameters - while ( ( c = getopt_long(argc, argv, + while ( ( c = getopt_long(argc-3, &(argv[3]), "L:R:icn", getopt_long_options, &n_option_index) ) != -1 ) {