summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2018-10-17 23:27:44 +0200
committersharkdp <davidpeter@web.de>2018-10-17 23:27:44 +0200
commit30b742e9845314bcac67f37664cfb3df61c1ba3f (patch)
treec9c4cbb2b3f723d9b210a6df3ab9c6f2dc6f17d0
parent671deeef8c0821f6cfd2933f60d510a9f7ff6837 (diff)
--map-syntax takes just one valuev0.8.0
-rw-r--r--src/clap_app.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clap_app.rs b/src/clap_app.rs
index 817ca1fe..b22f4f03 100644
--- a/src/clap_app.rs
+++ b/src/clap_app.rs
@@ -65,6 +65,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.long("map-syntax")
.multiple(true)
.takes_value(true)
+ .number_of_values(1)
.value_name("from:to")
.help("Map a file extension or name to an existing syntax.")
.long_help(