From 0359a07a2e26bdd5f42e8a9cd51fc7cbbfc177a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 7 May 2010 10:35:12 +0200 Subject: Handle option separator (--) --- odb/odb.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'odb/odb.cxx') 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 -- cgit v1.1