Skip to content

List of Path via add_class_arguments #802

@michael-hoss

Description

@michael-hoss

Hi and thanks for your great project 👋

The docs tell me how to specify a list of paths using parser.add_argument.

Does this also work with parser.add_class_arguments? I have a config class in which I'd like to specify my_paths: list[Path_r].

Been wondering e.g. where to tell the interface that enable_path=True.

While the docs mention how to get the path list from a file or from stdin, how would I proceed if I want to specify a comma-separated list in the CLI after --my_paths?

Thanks in advance for you help!

Edit: Just figured out things work like a charm as soon as I actually use the CLI syntax [/path/a,/path/b] 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions