nk412 / optparse

Simple command line arguments parser for BASH
MIT License
158 stars 32 forks source link

qouted argument value with other arguments in a value doesn't work #21

Open bitsofinfo opened 7 years ago

bitsofinfo commented 7 years ago
optparse.define short=A long=extraDockerRunArgs desc="optional, quoted string of extra docker run argument flags/values" variable=EXTRA_DOCKER_RUN_ARGS default=""

mycmd.sh -A "--memory=\"256M\" --cpu-shares=\"100\""

results in

Unrecognized long option: --memory="256M" --cpu-shares="100"

bitsofinfo commented 7 years ago

But this works

mycmd.sh -A "-m=\"256M\" -c=\"100\""

bitsofinfo commented 7 years ago

thoughts?

bmudda commented 7 years ago

+1

bitsofinfo commented 7 years ago

Anyone managing this project anymore