init: Bring back --decline-arin-rpa as alternative to --skip-tal arin.
@@ -234,6 +234,10 @@ impl Init {
.multiple(true)
.number_of_values(1)
)
+ .arg(Arg::with_name("decline-arin-rpa")
+ .long("decline-arin-rpa")
+ .help("Same as '--skip-tal arin' (deprecated)")
+ )
.arg(Arg::with_name("list-tals")
.long("list-tals")
.help("List available TALs and exit")
@@ -296,6 +300,18 @@ impl Init {
}
}
+ // Remove ARIN Tal.
+ if matches.is_present("decline-arin-rpa") {
+ eprintln!(
+ "Warning: '--decline-arin-rpa' has been replaced \
+ by '--skip-tal arin' and \n will be removed."
+ );
+ if !requested.remove("arin") {
+ eprintln!("Attempt to skip non-included TAL 'arin'");
+ return Err(Failed)
+ }
+ }
+
let mut tals = Vec::new();
for tal in tals::BUNDLED_TALS {
