mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
xtask: Add defaults for PackageOpt and FormatOpt
This commit is contained in:
parent
20d31ede5a
commit
28257b001e
1 changed files with 2 additions and 2 deletions
|
|
@ -495,7 +495,7 @@ pub enum Commands {
|
|||
Book(Arg),
|
||||
}
|
||||
|
||||
#[derive(Args, Debug, Clone)]
|
||||
#[derive(Args, Debug, Clone, Default)]
|
||||
pub struct FormatOpt {
|
||||
#[clap(flatten)]
|
||||
pub package: PackageOpt,
|
||||
|
|
@ -504,7 +504,7 @@ pub struct FormatOpt {
|
|||
pub check: bool,
|
||||
}
|
||||
|
||||
#[derive(Args, Debug, Clone)]
|
||||
#[derive(Args, Debug, Clone, Default)]
|
||||
/// Restrict to package, or run on whole workspace
|
||||
pub struct PackageOpt {
|
||||
/// For which package/workspace member to operate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue