From e0d5d620659397ff0c005f2aadf75a43835818d6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 17 Nov 2011 05:39:02 -0800 Subject: [PATCH] Show option arguments in emerge.log arg list. --- pym/_emerge/main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 5e9f13e3c..62af0ad03 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1894,7 +1894,17 @@ def emerge_main(args=None): encoding=_encodings['content'], errors='replace')) myelogstr="" if myopts: - myelogstr=" ".join(myopts) + opt_list = [] + for opt, arg in myopts.items(): + if arg is True: + opt_list.append(opt) + elif isinstance(arg, list): + # arguments like --exclude that use 'append' action + for x in arg: + opt_list.append("%s=%s" % (opt, x)) + else: + opt_list.append("%s=%s" % (opt, arg)) + myelogstr=" ".join(opt_list) if myaction: myelogstr+=" "+myaction if myfiles: -- 2.26.2