=== modified file 'apt-pkg/contrib/cmndline.cc'
--- apt-pkg/contrib/cmndline.cc	2011-10-30 18:48:05 +0000
+++ apt-pkg/contrib/cmndline.cc	2012-06-06 08:13:05 +0000
@@ -92,7 +92,7 @@
       // Match up to a = against the list
       Args *A;
       const char *OptEnd = strchrnul(Opt, '=');
-      for (A = ArgList; A->end() == false && 
+      for (A = ArgList; A->end() == false && A->LongOpt == 0 || 
 	   stringcasecmp(Opt,OptEnd,A->LongOpt) != 0; A++);
       
       // Failed, look for a word after the first - (no-foo)

