summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-10-28 15:14:35 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-10-28 15:14:35 +0100
commit8c44493435494104575e04bdb17e21c5677b469c (patch)
treeaea6c24a6ec3e6896b56aed8ab25f287029717a3 /src/cli.rs
parent072be04325d114668115e588058f29ed27f36a6c (diff)
Add CLI interface for docker image name
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index a3eff47..884d5b4 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -29,6 +29,14 @@ pub fn cli<'a>() -> App<'a> {
.help("Pass these variables to each build job (expects \"key=value\" or name of variable available in ENV)")
)
+ .arg(Arg::with_name("image")
+ .required(true)
+ .multiple(false)
+ .short('I')
+ .long("image")
+ .help("Name of the docker image to use")
+ )
+
}
/// Naive check whether 's' is a 'key=value' pair or an existing environment variable