diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:23:35 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:26:16 +0100 |
commit | 83b3b97fee854e19c63999e4daadf802784a1499 (patch) | |
tree | aadb169bde50d4497110a7f8989fde755d255c92 /src/cli.rs | |
parent | 5ff10cdad822300a04ffe3cb2482e20c37d7c2bd (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.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |