aboutsummaryrefslogtreecommitdiff
path: root/src/args.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-23 23:27:45 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-23 23:27:45 -0600
commit1844cb79ae82e71610573f133c5ed7aeeb0c50b6 (patch)
tree5f304a13473e67440d411ab0fee15d116a57d126 /src/args.rs
parent05b8b6339c4b00b0e898c8456677be2883c8a072 (diff)
downloadmakers-1844cb79ae82e71610573f133c5ed7aeeb0c50b6.tar.gz
makers-1844cb79ae82e71610573f133c5ed7aeeb0c50b6.zip
man i don't even fuckin know anymore
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/args.rs b/src/args.rs
index 1fe6731..963c01e 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -4,13 +4,13 @@ use std::path::PathBuf;
use structopt::StructOpt;
-#[derive(StructOpt, Debug, PartialEq, Eq)]
+#[derive(StructOpt, Debug, PartialEq, Eq, Clone)]
#[structopt(author, about)]
pub struct Args {
/// Cause environment variables, including those with null values, to override macro
/// assignments within makefiles.
#[structopt(short, long)]
- environment_overrides: bool,
+ pub environment_overrides: bool,
/// Specify a different makefile (or '-' for standard input).
///
@@ -20,20 +20,20 @@ pub struct Args {
/// specified. The effect of specifying the same option-argument more than once is
/// unspecified.
#[structopt(short = "f", long = "file", visible_alias = "makefile", number_of_values = 1, parse(from_os_str))]
- makefile: Vec<PathBuf>,
+ pub makefile: Vec<PathBuf>,
/// Ignore error codes returned by invoked commands.
///
/// This mode is the same as if the special target .IGNORE were specified without
/// prerequisites.
#[structopt(short, long)]
- ignore_errors: bool,
+ pub ignore_errors: bool,
/// Continue to update other targets that do not depend on the current target if a
/// non-ignored error occurs while executing the commands to bring a target
/// up-to-date.
#[structopt(short, long)]
- keep_going: bool,
+ pub keep_going: bool,
/// Write commands that would be executed on standard output, but do not execute them
/// (but execute lines starting with '+').
@@ -42,14 +42,14 @@ pub struct Args {
/// lines with an at-sign ( '@' ) character prefix shall be written to standard
/// output.
#[structopt(short = "n", long, visible_alias = "just-print", visible_alias = "recon")]
- dry_run: bool,
+ pub dry_run: bool,
/// Write to standard output the complete set of macro definitions and target
/// descriptions.
///
/// The output format is unspecified.
#[structopt(short, long, visible_alias = "print-data-base")]
- print_everything: bool,
+ pub print_everything: bool,
/// Return a zero exit value if the target file is up-to-date; otherwise, return an
/// exit value of 1.
@@ -58,11 +58,11 @@ pub struct Args {
/// command line (associated with the targets) with a <plus-sign> ( '+' ) prefix
/// shall be executed.
#[structopt(short, long)]
- question: bool,
+ pub question: bool,
/// Clear the suffix list and do not use the built-in rules.
#[structopt(short = "r", long)]
- no_builtin_rules: bool,
+ pub no_builtin_rules: bool,
/// Terminate make if an error occurs while executing the commands to bring a target
/// up-to-date (default behavior, required by POSIX to be also a flag for some
@@ -70,7 +70,7 @@ pub struct Args {
///
/// This shall be the default and the opposite of -k.
#[structopt(short = "S", long, visible_alias = "stop", hidden = true, overrides_with="keep-going")]
- no_keep_going: bool,
+ pub no_keep_going: bool,
/// Do not write makefile command lines or touch messages to standard output before
/// executing.
@@ -78,7 +78,7 @@ pub struct Args {
/// This mode shall be the same as if the special target .SILENT were specified
/// without prerequisites.
#[structopt(short, long, visible_alias = "quiet")]
- silent: bool,
+ pub silent: bool,
/// Update the modification time of each target as though a touch target had been
/// executed.
@@ -89,14 +89,14 @@ pub struct Args {
/// the makefile command lines associated with each target are not executed. However,
/// a command line with a <plus-sign> ( '+' ) prefix shall be executed.
#[structopt(short, long)]
- touch: bool,
+ pub touch: bool,
/// Target names or macro definitions.
///
/// If no target is specified, while make is processing the makefiles, the first
/// target that make encounters that is not a special target or an inference rule
/// shall be used.
- targets_or_macros: Vec<String>,
+ pub targets_or_macros: Vec<String>,
}
impl Args {