

def _format_option(option):
    output = ''
    if option._short_opts:
        output = (option._short_opts[0] + ' ')
    output += (option.get_opt_string() + ' ')
    output += (' ' * (15 - len(output)))
    output += (option.help + ' ')
    if (not (option.default == ('NO', 'DEFAULT'))):
        output += ('[default: %s]' % option.default)
    return output

dataset/ETHPy150Open Calysto/metakernel/metakernel/magic.py _format_option/original