Skip to content

Commit 9fafde3

Browse files
committed
feat: add --database-path argument
1 parent 65ab130 commit 9fafde3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/arguments/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ pub trait SubcommandExecutor {
2727

2828
/// Main structure defining the Clap argument for the cotp commandline utility
2929
#[derive(Parser)]
30-
#[command(author, version = env ! ("COTP_VERSION"), about, long_about = None)]
30+
#[command(author, version = env!("COTP_VERSION"), about, long_about = None)]
3131
pub struct CotpArgs {
3232
#[command(subcommand)]
3333
command: Option<CotpSubcommands>,
3434
/// Fetch the password from standard input
3535
#[arg(long = "password-stdin", default_value_t = false)]
3636
pub password_from_stdin: bool,
37+
/// Set the database path
38+
#[arg(short = 'd', long = "database-path")]
39+
pub database_path: Option<String>,
3740
}
3841

3942
/// Define available Subcommands

0 commit comments

Comments
 (0)