From f32c0a78636fb4c6527662ad3da97d61f765b0fb Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 25 Sep 2024 01:28:11 -0700 Subject: [PATCH] switch to #[derive(Parser)] instead of #[derive(Args)] --- crates/fayalite/src/cli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/fayalite/src/cli.rs b/crates/fayalite/src/cli.rs index 5071279..d1bbfb1 100644 --- a/crates/fayalite/src/cli.rs +++ b/crates/fayalite/src/cli.rs @@ -8,7 +8,7 @@ use crate::{ }; use clap::{ builder::{OsStringValueParser, TypedValueParser}, - Args, Parser, Subcommand, ValueEnum, ValueHint, + Parser, Subcommand, ValueEnum, ValueHint, }; use eyre::{eyre, Report}; use std::{error, ffi::OsString, fmt, io, path::PathBuf, process}; @@ -42,7 +42,7 @@ pub trait RunPhase { fn run(&self, arg: Arg) -> Result; } -#[derive(Args, Debug)] +#[derive(Parser, Debug, Clone)] #[non_exhaustive] pub struct BaseArgs { /// the directory to put the generated main output file and associated files in @@ -62,7 +62,7 @@ impl BaseArgs { } } -#[derive(Args, Debug)] +#[derive(Parser, Debug, Clone)] #[non_exhaustive] pub struct FirrtlArgs { #[command(flatten)] @@ -140,7 +140,7 @@ impl VerilogDialect { } } -#[derive(Args, Debug)] +#[derive(Parser, Debug, Clone)] #[non_exhaustive] pub struct VerilogArgs { #[command(flatten)]