Skip to content

CLI --dir cannot represent directory paths containing literal :: #13873

Description

@MacroModel

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:

--dir=HOST::GUEST

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions