radicle_cli/commands/auth/
args.rs1use clap::Parser;
2use radicle::node::Alias;
3
4const ABOUT: &str = "Manage identities and profiles";
5const LONG_ABOUT: &str = r#"
6A passphrase may be given via the environment variable `RAD_PASSPHRASE` or
7via the standard input stream if `--stdin` is used. Using either of these
8methods disables the passphrase prompt.
9"#;
10
11#[derive(Debug, Parser)]
12#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
13pub struct Args {
14 #[arg(long)]
16 pub alias: Option<Alias>,
17
18 #[arg(long, default_value_t = false)]
20 pub stdin: bool,
21}