diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 6cc9c67..f36e019 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -197,14 +197,6 @@ pub struct Cli { help_heading = "Installation & Updates" )] pub git_host: Option, - /// Removed; use --install instead - #[arg( - long, - hide = true, - value_name = "GIT_URL", - help_heading = "Installation & Updates" - )] - pub install_from: Option, /// Reinstall bundled assets for a category (asks before overwriting your local changes) #[arg( long, @@ -597,14 +589,6 @@ mod tests { ); } - #[test] - fn parse_install_from_is_a_tombstone() { - let cli = parse(&["--install-from", "https://github.com/x/y"]); - assert!(cli.install.is_none()); - assert_eq!(cli.install_from.as_deref(), Some("https://github.com/x/y")); - assert!(cli.text.is_empty()); - } - #[test] fn parse_install_builtins_conflicts_with_install() { assert!( @@ -666,10 +650,9 @@ mod tests { } #[test] - fn help_omits_install_from_and_shows_install_builtins() { + fn help_shows_install_builtins() { use clap::CommandFactory; let help = Cli::command().render_long_help().to_string(); - assert!(!help.contains("--install-from"), "help: {help}"); assert!(help.contains("--install-builtins")); } diff --git a/src/main.rs b/src/main.rs index 4befadc..eebdaf0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -127,10 +127,6 @@ async fn main() -> Result<()> { return sandbox::launch(name.clone(), cli.fresh); } - if cli.install_from.is_some() { - bail!("--install-from was removed; use --install instead"); - } - install_builtins()?; if let Some(category) = cli.install_builtins {