From 0c3156557777c604d6678cd39c7d874fae40e01e Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Tue, 6 Aug 2024 18:20:01 -0300 Subject: [PATCH 1/3] Fix `contract init` short name conflict. --- FULL_HELP_DOCS.md | 2 +- cmd/soroban-cli/src/commands/contract/init.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FULL_HELP_DOCS.md b/FULL_HELP_DOCS.md index b7e0011e3..0933b7de1 100644 --- a/FULL_HELP_DOCS.md +++ b/FULL_HELP_DOCS.md @@ -402,7 +402,7 @@ Initialize a Soroban project with an example contract Possible values: `account`, `alloc`, `atomic_multiswap`, `atomic_swap`, `auth`, `cross_contract`, `custom_types`, `deep_contract_auth`, `deployer`, `errors`, `eth_abi`, `events`, `fuzzing`, `increment`, `liquidity_pool`, `logging`, `mint-lock`, `simple_account`, `single_offer`, `timelock`, `token`, `ttl`, `upgradeable_contract`, `workspace` -* `-f`, `--frontend-template ` — An optional flag to pass in a url for a frontend template repository. +* `-t`, `--frontend-template ` — An optional flag to pass in a url for a frontend template repository. Default value: `` * `--overwrite` — Overwrite all existing files. diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index 7318c1d7f..749b49f16 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -41,8 +41,8 @@ pub struct Cmd { pub with_example: Vec, #[arg( - short, long, + short = 't', default_value = "", long_help = "An optional flag to pass in a url for a frontend template repository." )] From 38fc6648d88578dd0e9d3913c4b9986e6ba73368 Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 7 Aug 2024 09:40:30 -0300 Subject: [PATCH 2/3] Update cmd/soroban-cli/src/commands/contract/init.rs Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> --- cmd/soroban-cli/src/commands/contract/init.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index 749b49f16..a83504d96 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -42,7 +42,6 @@ pub struct Cmd { #[arg( long, - short = 't', default_value = "", long_help = "An optional flag to pass in a url for a frontend template repository." )] From 6ec9b8cef4d4b74698244f0c35b7126e12757e48 Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 7 Aug 2024 14:08:31 -0300 Subject: [PATCH 3/3] Update docs. --- FULL_HELP_DOCS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FULL_HELP_DOCS.md b/FULL_HELP_DOCS.md index 0f09cec7a..3a8544072 100644 --- a/FULL_HELP_DOCS.md +++ b/FULL_HELP_DOCS.md @@ -402,7 +402,7 @@ Initialize a Soroban project with an example contract Possible values: `account`, `alloc`, `atomic_multiswap`, `atomic_swap`, `auth`, `cross_contract`, `custom_types`, `deep_contract_auth`, `deployer`, `errors`, `eth_abi`, `events`, `fuzzing`, `increment`, `liquidity_pool`, `logging`, `mint-lock`, `simple_account`, `single_offer`, `timelock`, `token`, `ttl`, `upgradeable_contract`, `workspace` -* `-t`, `--frontend-template ` — An optional flag to pass in a url for a frontend template repository. +* `--frontend-template ` — An optional flag to pass in a url for a frontend template repository. Default value: `` * `--overwrite` — Overwrite all existing files.