diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-07 10:35:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-07 10:35:12 +0200 |
commit | 0359a07a2e26bdd5f42e8a9cd51fc7cbbfc177a0 (patch) | |
tree | b63d47661f972de00e9bd4d6e415e8563964f675 | |
parent | c35e0d08b881acc38cec741e862180eed20e2d20 (diff) |
Handle option separator (--)
-rw-r--r-- | odb/odb.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx index eca2dca..0c5322f 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -188,6 +188,13 @@ main (int argc, char* argv[]) string k, v; string a (plugin_args[i]); + if (a == "--") + { + // Ignore the option seperator since GCC doesn't understand it. + // + continue; + } + if (a.size () > 2) k = string (a, 2); // long format else |