Skip to content

Runtime parameters of mlcube can't include the letter "h" #347

Closed
@hasan7n

Description

@hasan7n

Setting runtime parameters using the -P... convention doesn't work if the parameter contains the letter h. Example:
mlcube run -Pdocker.cpu_args="--shm-size 1g" ...
Running the above will show the MLCube's --help message.

Below as an example that can localize the problem:
mlcube run -Pdocker.cpu_args="--name helloworld" ...: This will show the --help message
mlcube run -Pdocker.cpu_args="--name elloworld" ...: This will run successfuly

The reason seems to be that when click encounters the following pattern: -**********h******, it interprets this as a bunch of options, and recognizes one of them: -h.

I couldn't find a workaround, and I think in the future we will need to allow users to dynamically set docker's --shm-size parameter.

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