aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.rs
parent744eac9b99270524a14691679f36e9518b85d0db (diff)
downloadmakers-449a25bed1007901e0b2b14e1ca5573056235b01.tar.gz
makers-449a25bed1007901e0b2b14e1ca5573056235b01.zip
only offer -C flag on full build
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index b43249d..e0deecc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,6 +20,7 @@
clippy::todo
)]
+#[cfg(feature = "full")]
use std::env;
use std::fs::metadata;
use std::io::stdin;
@@ -45,6 +46,7 @@ fn main() -> Result<()> {
jane_eyre::install()?;
let mut args = Args::from_env_and_args();
+ #[cfg(feature = "full")]
if let Some(dir) = args.directory.as_ref() {
env::set_current_dir(dir)?;
}