diff --git a/FULL_HELP_DOCS.md b/FULL_HELP_DOCS.md index 0842b6d98..ce1f5fede 100644 --- a/FULL_HELP_DOCS.md +++ b/FULL_HELP_DOCS.md @@ -460,7 +460,7 @@ Deploy a wasm contract Possible values: `true`, `false` -* `--alias ` — The alias that will be used to save the contract's id +* `--alias ` — The alias that will be used to save the contract's id. Whenever used, `--alias` will always overwrite the existing contract id configuration without asking for confirmation diff --git a/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs b/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs index 7f51862cf..b85b65bcc 100644 --- a/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs +++ b/cmd/soroban-cli/src/commands/contract/deploy/wasm.rs @@ -56,6 +56,8 @@ pub struct Cmd { /// Whether to ignore safety checks when deploying contracts pub ignore_checks: bool, /// The alias that will be used to save the contract's id. + /// Whenever used, `--alias` will always overwrite the existing contract id + /// configuration without asking for confirmation. #[arg(long, value_parser = clap::builder::ValueParser::new(alias_validator))] pub alias: Option, }