The existing --dir=HOST::GUEST syntax is ambiguous when either path contains ::.
Consider supporting a two-argument form:
wasmtime --dir HOST GUEST program.wasm
The existing syntax could remain as a backward-compatible alias:
This avoids introducing custom escaping rules and lets both paths represent valid filesystem names directly.
the ("--dir HOST GUEST" and "--dir=HOST::GUEST") two-argument behavior may be unclear.Consider:
wasmtime --map-dir A::B C::D program.wasm
The existing --dir syntax can remain supported for backward compatibility (only in the --dir=HOST::GUEST form). Meanwhile, --map-dir more clearly conveys that the first directory is mapped to the second, while avoiding the need for any custom escaping rules.
The existing
--dir=HOST::GUESTsyntax is ambiguous when either path contains::.Consider supporting a two-argument form:
The existing syntax could remain as a backward-compatible alias:
This avoids introducing custom escaping rules and lets both paths represent valid filesystem names directly.
the ("--dir HOST GUEST" and "--dir=HOST::GUEST") two-argument behavior may be unclear.Consider:
The existing
--dirsyntax can remain supported for backward compatibility (only in the--dir=HOST::GUESTform). Meanwhile,--map-dirmore clearly conveys that the first directory is mapped to the second, while avoiding the need for any custom escaping rules.