summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 0d14107cb..e0e66d8ac 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -474,7 +474,9 @@ def insert_optional_args(args):
new_args.append(opt_arg)
if saved_opts is not None:
- new_args.append("-" + saved_opts)
+ # Recycle these on arg_stack since they
+ # might contain another match.
+ arg_stack.append("-" + saved_opts)
return new_args