diff --git a/src/main.rs b/src/main.rs index 9258f53..63f27ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ pub struct Args { /** * Struct for mode-specific arguments. */ -#[derive(Parser, Debug)] +#[derive(Parser, Debug, Clone)] struct ModeArgs { #[arg(group("mode"), help_heading("Mode Options"), short, long, conflicts_with_all(["get", "diff", "list", "update", "delete", "info", "status"]))] #[arg(help("Save an item using any tags or metadata provided"))] @@ -92,7 +92,7 @@ struct ModeArgs { /** * Struct for item-specific arguments. */ -#[derive(Parser, Debug)] +#[derive(Parser, Debug, Clone)] struct ItemArgs { #[arg(help_heading("Item Options"), short, long, conflicts_with_all(["get", "delete", "status"]))] #[arg(help( @@ -117,8 +117,7 @@ struct ItemArgs { /** * Struct for general options. */ -#[derive(Parser, Debug)] -#[derive(Default)] +#[derive(Parser, Debug, Default, Clone)] struct OptionsArgs { #[arg(long, env("KEEP_DIR"))] #[arg(help("Specify the directory to use for storage"))]