switch to #[derive(Parser)] instead of #[derive(Args)]

This commit is contained in:
Jacob Lifshay 2024-09-25 01:28:11 -07:00
parent 4ff01690a7
commit f32c0a7863
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -8,7 +8,7 @@ use crate::{
}; };
use clap::{ use clap::{
builder::{OsStringValueParser, TypedValueParser}, builder::{OsStringValueParser, TypedValueParser},
Args, Parser, Subcommand, ValueEnum, ValueHint, Parser, Subcommand, ValueEnum, ValueHint,
}; };
use eyre::{eyre, Report}; use eyre::{eyre, Report};
use std::{error, ffi::OsString, fmt, io, path::PathBuf, process}; use std::{error, ffi::OsString, fmt, io, path::PathBuf, process};
@ -42,7 +42,7 @@ pub trait RunPhase<Arg> {
fn run(&self, arg: Arg) -> Result<Self::Output>; fn run(&self, arg: Arg) -> Result<Self::Output>;
} }
#[derive(Args, Debug)] #[derive(Parser, Debug, Clone)]
#[non_exhaustive] #[non_exhaustive]
pub struct BaseArgs { pub struct BaseArgs {
/// the directory to put the generated main output file and associated files in /// 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] #[non_exhaustive]
pub struct FirrtlArgs { pub struct FirrtlArgs {
#[command(flatten)] #[command(flatten)]
@ -140,7 +140,7 @@ impl VerilogDialect {
} }
} }
#[derive(Args, Debug)] #[derive(Parser, Debug, Clone)]
#[non_exhaustive] #[non_exhaustive]
pub struct VerilogArgs { pub struct VerilogArgs {
#[command(flatten)] #[command(flatten)]