mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +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),
|
Book(Arg),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Args, Debug, Clone)]
|
#[derive(Args, Debug, Clone, Default)]
|
||||||
pub struct FormatOpt {
|
pub struct FormatOpt {
|
||||||
#[clap(flatten)]
|
#[clap(flatten)]
|
||||||
pub package: PackageOpt,
|
pub package: PackageOpt,
|
||||||
|
|
@ -504,7 +504,7 @@ pub struct FormatOpt {
|
||||||
pub check: bool,
|
pub check: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Args, Debug, Clone)]
|
#[derive(Args, Debug, Clone, Default)]
|
||||||
/// Restrict to package, or run on whole workspace
|
/// Restrict to package, or run on whole workspace
|
||||||
pub struct PackageOpt {
|
pub struct PackageOpt {
|
||||||
/// For which package/workspace member to operate
|
/// For which package/workspace member to operate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue