Collection of enums annotated with Argument are not showing possible values
Opened this issue · 2 comments
magicDGS commented
If a class with an argument in the form:
...
public static enum Opt { ONE, TWO };
@Argument
public List<Opt> list = new ArrayList<>;
Does not show in the cli nor docgen the options in the form of other arguments such as Possible values: {ONE, TWO}
.
cmnbroad commented
@bhanugandham I think this is a really good ticket to start on. I just tried it with both GATK master (the command line help output looks correct, but the docgen output doesn't), and also directly in Barclay master using the docgen test (the output looks correct). As I noted earlier, GATK doesn't have the current Barclay code, which I think explains why it works in Barclay but not GATK.
So although I think its already fixed, we don't have any tests for this case, so it would be a good to verify it and add tests to cover it.
bhanugandham commented
Thanks Chris I will look into this.