aboutsummaryrefslogtreecommitdiff
path: root/src/args.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-14 00:35:21 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-14 00:35:21 -0600
commit449a25bed1007901e0b2b14e1ca5573056235b01 (patch)
treed4f5e36e520e591d49fd4959890d98782b1746bb /src/args.rs
parent744eac9b99270524a14691679f36e9518b85d0db (diff)
downloadmakers-449a25bed1007901e0b2b14e1ca5573056235b01.tar.gz
makers-449a25bed1007901e0b2b14e1ca5573056235b01.zip
only offer -C flag on full build
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs
index 9613dc3..6def229 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -117,6 +117,7 @@ pub struct Args {
pub touch: bool,
/// Change to the given directory before running.
+ #[cfg(feature = "full")]
#[structopt(short = "C", long, parse(from_os_str))]
pub directory: Option<PathBuf>,
@@ -213,6 +214,8 @@ mod test {
no_keep_going: false,
silent: false,
touch: false,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec![],
}
);
@@ -239,6 +242,8 @@ mod test {
no_keep_going: false,
silent: true,
touch: true,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec!["bar".into(), "baz=yeet".into()],
}
);
@@ -265,6 +270,8 @@ mod test {
no_keep_going: false,
silent: false,
touch: false,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec![],
}
);
@@ -291,6 +298,8 @@ mod test {
no_keep_going: true,
silent: false,
touch: false,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec![],
}
);
@@ -315,6 +324,8 @@ mod test {
no_keep_going: false,
silent: false,
touch: false,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec![],
}
);
@@ -339,6 +350,8 @@ mod test {
no_keep_going: false,
silent: false,
touch: false,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec![],
}
);
@@ -366,6 +379,8 @@ mod test {
no_keep_going: true,
silent: true,
touch: true,
+ #[cfg(feature = "full")]
+ directory: None,
targets_or_macros: vec!["foo=bar".into(), "bar".into(), "baz=yeet".into()],
}
);