Skip to content

Commit 533ded3

Browse files
committed
refactor: implement clone for command arguments
1 parent 92bbc73 commit 533ded3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub enum Commands {
4444
Clear,
4545
}
4646

47-
#[derive(Debug, clap::Args)]
47+
#[derive(Debug, Clone, clap::Args)]
4848
pub struct StoreArgs {
4949
#[arg(raw = true)]
5050
pub bytes: Option<OsString>,
@@ -104,7 +104,7 @@ impl Default for StoreArgs {
104104
}
105105
}
106106

107-
#[derive(Debug, clap::Args)]
107+
#[derive(Debug, Clone, clap::Args)]
108108
pub struct ListArgs {
109109
/// Maximum width in characters for the previews.
110110
///
@@ -131,7 +131,7 @@ impl Default for ListArgs {
131131
}
132132
}
133133

134-
#[derive(Debug, Default, clap::Args)]
134+
#[derive(Debug, Default, Clone, clap::Args)]
135135
pub struct GetDelArgs {
136136
/// The selected row from `clipvault list`, or just the ID of the entry.
137137
///

0 commit comments

Comments
 (0)