diff --git a/src/cli.rs b/src/cli.rs index dc20a98..8085891 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -5,7 +5,7 @@ //! //! `fido2luks credential 'My 2FA protected disk'` //! -//! It is advisable to repeat this step and the next step for more than one authenticator, as a backup +//! It is advisable to repeat this step and the next step for more than one authenticator, as backup //! ### Securing a disk //! To utilise the previously generated credential you simply run //! @@ -38,6 +38,16 @@ //! `fido2luks -i open-token ` //! //! which should even be faster since it allows for the credential to be matched to the right keyslot +//! +//! +//! ### Common options +//! +//! `--salt` Determines what data will be provided to the authenticator in order to derive the secret, the default being `ask` which will prompt the user for an password. +//! Alternatives being `file:` where the specified file will be hashed and then used as input, the same goes for the `string:` option which will behave in the same manner as the `ask` option. +//! +//! `--pin` Allows for a PIN to be passed to the authenticator if needed, it is however recommended not to use a PIN since the bootscript doesn't support this feature atm. +//! +//! `--help` Will provide context dependant help for each command use crate::error::*; use crate::*;