Skip to content

Commit

Permalink
Merge pull request #2 from daviesrob/0.5.10-mt_fixes
Browse files Browse the repository at this point in the history
Ensure we exit 1 when given an invalid command-line option.
  • Loading branch information
dkj committed May 12, 2015
2 parents c3a60e8 + d242fa6 commit b8267d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bwtsw2_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ int bwa_bwtsw2(int argc, char *argv[])
case 'N': opt->t_seeds = atoi(optarg); break;
case 'H': opt->hard_clip = 1; break;
case 'f': xreopen(optarg, "w", stdout); break;
default: return 1;
}
}
opt->qr = opt->q + opt->r;
Expand Down
1 change: 1 addition & 0 deletions simple_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ int bwa_stdsw(int argc, char *argv[])
case 'f': g_strand |= 1; break;
case 'r': g_strand |= 2; break;
case 'p': g_aa = 1; break;
default: return 1;
}
}
if (g_strand == 0) g_strand = 3;
Expand Down

0 comments on commit b8267d8

Please sign in to comment.