make salt cli option

This commit is contained in:
shimunn 2019-10-06 22:16:12 +02:00
parent 99e408cc8d
commit fbcfdea96b
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -94,7 +94,12 @@ pub struct SecretGeneration {
/// - ask : Promt user using password helper{n} /// - ask : Promt user using password helper{n}
/// - file:<PATH> : Will read <FILE>{n} /// - file:<PATH> : Will read <FILE>{n}
/// - string:<STRING> : Will use <STRING>, which will be handled like a password provided to the 'ask' option{n} /// - string:<STRING> : Will use <STRING>, which will be handled like a password provided to the 'ask' option{n}
#[structopt(name = "salt", env = "FIDO2LUKS_SALT", default_value = "ask")] #[structopt(
name = "salt",
long = "salt",
env = "FIDO2LUKS_SALT",
default_value = "ask"
)]
pub salt: InputSalt, pub salt: InputSalt,
/// Script used to obtain passwords, overridden by --interactive flag /// Script used to obtain passwords, overridden by --interactive flag
#[structopt( #[structopt(