From 744eac9b99270524a14691679f36e9518b85d0db Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Apr 2021 00:20:28 -0600 Subject: add -C flag to change directory before starting --- src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/args.rs') 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, + /// Target names or macro definitions. /// /// If no target is specified, while make is processing the makefiles, the first -- cgit v1.2.3