summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:23:35 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:26:16 +0100
commit83b3b97fee854e19c63999e4daadf802784a1499 (patch)
treeaadb169bde50d4497110a7f8989fde755d255c92 /src/cli.rs
parent5ff10cdad822300a04ffe3cb2482e20c37d7c2bd (diff)
Implement shebang overwriting
This patch implements the shebang overwriting functionality that was in a TODO note. It adds a `Shebang` type for it, which is a String wrapper. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 09b4437..555ee06 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -243,6 +243,15 @@ pub fn cli<'a>() -> App<'a> {
.about("Do not throw dice on staging directory name, but hardcode for this run.")
)
+ .arg(Arg::new("shebang")
+ .required(false)
+ .multiple(false)
+ .long("shebang")
+ .takes_value(true)
+ .value_name("BANG")
+ .about("Overwrite the configured shebang line")
+ )
+
.arg(Arg::new("env")
.required(false)
.multiple(true)