Skip to content

feature enhancement: typed arg? #13

@mw66

Description

@mw66

Hi,

Right now the arg's type is either string, or string[], and user need to convert manually to other types, e.g.

    int depth = args.arg("depth").to!int;

is it possible to allow user specify the arg type directly, e.g.

          .add(new IntArgument("depth", "dir depth"))

and access it directly later as:

    int depth = args.arg("depth");  // directly get int value

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions