feat: Make the name option in edit & add as argument #29

Merged
awiteb merged 1 commit from awiteb/fix-24 into master 2024-05-07 07:55:40 +02:00 AGit

View file

@ -45,7 +45,6 @@ pub enum Format {
#[derive(Clone, Debug, Deserialize, Serialize, Parser)] #[derive(Clone, Debug, Deserialize, Serialize, Parser)]
pub struct Vault { pub struct Vault {
/// The name of the vault /// The name of the vault
#[arg(short, long)]
pub name: String, pub name: String,
/// The username /// The username
#[arg(short, long)] #[arg(short, long)]
@ -57,7 +56,7 @@ pub struct Vault {
#[arg(short, long)] #[arg(short, long)]
pub service: Option<String>, pub service: Option<String>,
/// Add a note to the vault /// Add a note to the vault
#[arg(short = 'o', long)] #[arg(short, long)]
pub note: Option<String>, pub note: Option<String>,
} }