fix: add Clone derive to nested argument structs to satisfy trait bound

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-10 23:03:05 -03:00
parent 37654eb911
commit 29aa477417

View File

@@ -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"))]