Remove unused default update manifest pubkeys

This commit is contained in:
Michael Vines
2020-03-17 20:07:37 -07:00
parent 142601d4b6
commit e6e43d236f
3 changed files with 8 additions and 30 deletions

View File

@@ -131,20 +131,15 @@ pub fn main() -> Result<(), String> {
.long("no-modify-path")
.help("Don't configure the PATH environment variable"),
)
.arg({
let arg = Arg::with_name("update_manifest_pubkey")
.arg(
Arg::with_name("update_manifest_pubkey")
.short("p")
.long("pubkey")
.value_name("PUBKEY")
.takes_value(true)
.validator(is_pubkey)
.help("Public key of the update manifest");
match defaults::update_manifest_pubkey(build_env::TARGET) {
Some(default_value) => arg.default_value(default_value),
None => arg,
}
})
.help("Public key of the update manifest"),
)
.arg(
Arg::with_name("explicit_release")
.value_name("release")
@@ -314,20 +309,15 @@ pub fn main_init() -> Result<(), String> {
.long("no-modify-path")
.help("Don't configure the PATH environment variable"),
)
.arg({
let arg = Arg::with_name("update_manifest_pubkey")
.arg(
Arg::with_name("update_manifest_pubkey")
.short("p")
.long("pubkey")
.value_name("PUBKEY")
.takes_value(true)
.validator(is_pubkey)
.help("Public key of the update manifest");
match defaults::update_manifest_pubkey(build_env::TARGET) {
Some(default_value) => arg.default_value(default_value),
None => arg,
}
})
.help("Public key of the update manifest"),
)
.arg(
Arg::with_name("explicit_release")
.value_name("release")