Skip to content

How can I use hyphenated arguments in argparse? #11

Description

@t-saito-ai-ms

I want to use the "docker-args" option, but I get an error if there is a hyphen at the beginning of the input.

How could I use hyphenated arguments??

input
clearml-session --docker-args --shm-size=64gb

output
clearml-session: error: argument --docker-args: expected one argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions