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: