Fix argument parsing for updating the repo.

This commit is contained in:
Tim Bruijnzeels
2019-11-15 12:41:07 +01:00
parent 0ab239ab4e
commit d76fc87274
+3 -1
View File
@@ -1012,7 +1012,7 @@ impl Options {
let update = RepositoryUpdate::embedded();
let command = Command::CertAuth(CaCommand::RepoUpdate(my_ca, update));
Ok(Options::make(general_args, command))
} else {
} else if let Some(matches) = matches.subcommand_matches("rfc8183") {
let general_args = GeneralArgs::from_matches(matches)?;
let my_ca = Self::parse_my_ca(matches)?;
@@ -1031,6 +1031,8 @@ impl Options {
let update = RepositoryUpdate::rfc8181(response);
let command = Command::CertAuth(CaCommand::RepoUpdate(my_ca, update));
Ok(Options::make(general_args, command))
} else {
Err(Error::UnrecognisedSubCommand)
}
}