def _dump_arguments(name, args):
    output = ""
    as_dict = vars(args)
    keys = as_dict.keys()
    keys.sort()
    max_len = max(len(k) for k in keys)
    keys.sort()
    for k in keys:
        value = as_dict[k]
        output += "  " + k.ljust(max_len) + " = %s\n" % (value,)
    if output[-1] == "\n":
        output = output[:-1]
    ui.debug("[%s] arguments:\n%s" % (name, output))
Dump an argparser namespace to log
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/script.py/_dump_arguments