|
|
|
@ -405,14 +405,14 @@ pub fn parse() -> Result<(LogLevel, Arguments), ErrorCode> {
|
|
|
|
|
.arg(Arg::from_usage("[FILE] 'Destination file for the keypair'"))) |
|
|
|
|
.subcommand(SubCommand::with_name("addkey").about("Add a key pair to the repository") |
|
|
|
|
.arg(Arg::from_usage("-g --generate 'Generate a new key pair'") |
|
|
|
|
.conflicts_with_all(&["FILE", "PASSWORD"])) |
|
|
|
|
.conflicts_with("FILE")) |
|
|
|
|
.arg(Arg::from_usage("[set_default] --default -d 'Set the key pair as default'")) |
|
|
|
|
.arg(Arg::from_usage("-p --password [PASSWORD] 'Derive the key pair from the given password'") |
|
|
|
|
.conflicts_with("FILE")) |
|
|
|
|
.arg(Arg::from_usage("<REPO> 'Path of the repository'") |
|
|
|
|
.validator(|val| validate_repo_path(val, true, Some(false), Some(false)))) |
|
|
|
|
.requires("generate")) |
|
|
|
|
.arg(Arg::from_usage("[FILE] 'File containing the keypair'") |
|
|
|
|
.validator(validate_existing_path))) |
|
|
|
|
.validator(validate_existing_path)) |
|
|
|
|
.arg(Arg::from_usage("<REPO> 'Path of the repository'") |
|
|
|
|
.validator(|val| validate_repo_path(val, true, Some(false), Some(false))))) |
|
|
|
|
.subcommand(SubCommand::with_name("algotest").about("Test a specific algorithm combination") |
|
|
|
|
.arg(Arg::from_usage("[bundle_size] --bundle-size [SIZE] 'Set the target bundle size in MiB'") |
|
|
|
|
.default_value(DEFAULT_BUNDLE_SIZE_STR).validator(validate_num)) |
|
|
|
|