Merge branch 'feature/cli-args' into develop
Diff
Cargo.toml | 1 +
src/main.rs | 23 ++++++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
@@ -6,3 +6,4 @@ edition = "2021"
[dependencies]
gumdrop = "0.8.1"
\ No newline at end of file
@@ -1,3 +1,24 @@
use gumdrop::Options;
#[derive(Debug, Options)]
struct Cli {
#[options(help = "print help message and exit")]
help: bool,
#[options(help = "show debug output")]
debug: bool,
#[options(help = "folder name to use to search for SSH keys", default = "ssh-agent")]
folder: String,
#[options(help = "custom field name where the private key is stored", meta = "PRIVATE_KEY", default = "private-key")]
key: String,
#[options(help = "custom field name where the key passphrase is stored", meta = "PASS", default = "passphrase")]
passphrase: String,
#[options(help = "session to use to log in to bitwarden-cli")]
session: Option<String>,
#[options(help = "print version and exit")]
version: bool,
}
fn main() {
println!("Hello, world!");
let args: Cli = Cli::parse_args_default_or_exit();
println!("{:#?}", args);
}