Skip to content

Add a CustomCommandLineArgument interface #130

@cmnbroad

Description

@cmnbroad

This would be useful when the doc and possible values for an argument are not static, but derived programmatically from code. For example, an argument where the values are drawn from the cross product of two existing enums, or some subset thereof:

enum A { A1, A2 }
enum B { B1, B2, B3 }

@Argument
public List<String> crossProductArgs;

where the values of crossProductArgs are drawn from the set { "A1-B1", "A1-B2", "A2-B1", "A2-B2", "B1-A1", ... }, with hyphen as a separator.

This link is to a private repository, but for those who can navigate to it, a real life (and slightly more complicated) version of this came up in https://github.com/broadinstitute/picard-private/pull/1218.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions