Current implementation of stellar-cli doesn't properly implement enum arg-parsing and is really easy to break. Better documentation is needed or not using enums for better compatibility.
https://github.com/stellar/stellar-cli/blob/main/cmd/crates/soroban-spec-tools/src/lib.rs