Closed keiranmraine closed 6 years ago
Even more odd is that using the long form as '--required-flag=3does work.
--min-map-qualworks with or without
=`
Optional arg bit breaks on clean rebuild of binary giving:
option '--required-flag' doesn't allow an argument
With optional_argument
it works but requires =
Turns out all optional_arguments
require '=' so best to document all args as needing it:
Handled by PR #38, may need to add some doc about =
being required on long form optional args.
Using the long form of the
-f
and-F
options results in a segfault.I started to dig in to this and found that the options are not marked as taking values:
https://github.com/cancerit/alleleCount/blob/e16b76df5f159d53c74d720af6247067afa6270f/c/src/alleleCounter.c#L91-L92
Should this be
optional_argument
?With or without that change valgrid gives:
This occurs on both
--required-flag 3
and--filtered-flag 3852
but not on the short forms-f 3
and-F 3852
for some reason.