cli: -o should allow no quotes for path
currently -o storage.cache_dir=/tmp/testdir
returns an error unexpected character found: '/' in "cache_dir=/tmp/testdir"
. That's mildly annoying and confusing to new users.
We already do some tweaking for value matching [a-zA-Z0-9_]+
. I think it should work the other way: if the value doesn't look like an object ({...}
) or a list ([...]
), and isn't already quoted (doesn't start with any of {["
), quote it.
Edited by trinity-1686a