Skip to content

Commit

Permalink
chore: add deprecated label in help for parity templates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed Apr 27, 2024
1 parent 298c195 commit 86674b8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/pop-cli/src/commands/new/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ use pop_parachains::{instantiate_template_dir, Config, Git, GitHub, Provider, Re
pub struct NewParachainCommand {
#[arg(help = "Name of the project. If empty assistance in the process will be provided.")]
pub(crate) name: Option<String>,
#[arg(help = "Template provider. Options are pop or parity", default_value = "pop")]
#[arg(
help = "Template provider. Options are pop or parity (deprecated).",
default_value = "pop"
)]
pub(crate) provider: Option<Provider>,
#[arg(
short = 't',
Expand Down Expand Up @@ -82,9 +85,10 @@ async fn guide_user_to_generate_parachain() -> Result<()> {
provider,
provider.name(),
format!(
"{} {} available option(s)",
"{} {} available option(s) {}",
provider.description(),
provider.templates().len()
provider.templates().len(),
if provider.name() == "Parity" { "[deprecated]" } else { "" }
),
);
}
Expand Down

0 comments on commit 86674b8

Please sign in to comment.