diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-14 00:20:28 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-14 00:20:28 -0600 |
commit | 744eac9b99270524a14691679f36e9518b85d0db (patch) | |
tree | 7d8097d12e79a81a887137715fb1516166db6303 /src/args.rs | |
parent | 14a06b875746c6366c161a70f5eacbc6843d339e (diff) | |
download | makers-744eac9b99270524a14691679f36e9518b85d0db.tar.gz makers-744eac9b99270524a14691679f36e9518b85d0db.zip |
add -C flag to change directory before starting
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 6a46986..9613dc3 100644 --- a/src/args.rs +++ b/src/args.rs @@ -116,6 +116,10 @@ pub struct Args { #[structopt(short, long)] pub touch: bool, + /// Change to the given directory before running. + #[structopt(short = "C", long, parse(from_os_str))] + pub directory: Option<PathBuf>, + /// Target names or macro definitions. /// /// If no target is specified, while make is processing the makefiles, the first |