summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2018-08-28 17:10:57 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-08-29 23:48:44 +0200
commit0db9588e84463c211340f0bc2cb6da2b3a99c441 (patch)
tree81af5b59bdd1beeb6d575a3313737f89387862d0
parentaa1030ef4d19e527d1372d68f51b608598fe77f4 (diff)
options: mark clang-args last
before, bindgen -- -I blah would try to open `-I` as a header file.
-rw-r--r--src/options.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs
index 07195bfe..61f4f766 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -150,6 +150,7 @@ where
.help("Time the different bindgen phases and print to stderr"),
// All positional arguments after the end of options marker, `--`
Arg::with_name("clang-args")
+ .last(true)
.multiple(true),
Arg::with_name("emit-clang-ast")
.long("emit-clang-ast")