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. * Struct for mode-specific arguments.
*/ */
#[derive(Parser, Debug)] #[derive(Parser, Debug, Clone)]
struct ModeArgs { struct ModeArgs {
#[arg(group("mode"), help_heading("Mode Options"), short, long, conflicts_with_all(["get", "diff", "list", "update", "delete", "info", "status"]))] #[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"))] #[arg(help("Save an item using any tags or metadata provided"))]
@@ -92,7 +92,7 @@ struct ModeArgs {
/** /**
* Struct for item-specific arguments. * Struct for item-specific arguments.
*/ */
#[derive(Parser, Debug)] #[derive(Parser, Debug, Clone)]
struct ItemArgs { struct ItemArgs {
#[arg(help_heading("Item Options"), short, long, conflicts_with_all(["get", "delete", "status"]))] #[arg(help_heading("Item Options"), short, long, conflicts_with_all(["get", "delete", "status"]))]
#[arg(help( #[arg(help(
@@ -117,8 +117,7 @@ struct ItemArgs {
/** /**
* Struct for general options. * Struct for general options.
*/ */
#[derive(Parser, Debug)] #[derive(Parser, Debug, Default, Clone)]
#[derive(Default)]
struct OptionsArgs { struct OptionsArgs {
#[arg(long, env("KEEP_DIR"))] #[arg(long, env("KEEP_DIR"))]
#[arg(help("Specify the directory to use for storage"))] #[arg(help("Specify the directory to use for storage"))]