Closed
Description
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
Labels
No labels