(options, settings)
return table
Given a module's options and the column
        headers, generate a table, print it, and return
        the completed table.
Given a module's options and the column
        headers, generate a table, print it, and return
        the completed table.
Given a module s options and the column headers generate a table print it and return the completed table .
def display_options(options, settings):
    """ Given a module's options and the column
        headers, generate a table, print it, and return
        the completed table.
    """
    table = []
    for (idx, opt) in enumerate(options.keys()):
        tmp = []
        tmp.append(idx + 1)
        tmp.append(options[opt].display)
        tmp.append(options[opt].getStr())
        tmp.append(options[opt].type)
        tmp.append(options[opt].required)
        table.append(tmp)

    if len(table) > 0:
        config.pptable([settings] + table)
    else:
         Msg('\tModule has no options.')

    print color.B_YELLOW + '0' + color.B_GREEN + ') ' + color.B_WHITE + 'Back' + color.END
    return table
def display_options ( options , settings ) : table = [ ] for ( idx , opt ) in enumerate ( options . keys ( ) ) : tmp = [ ] tmp . append ( idx + 1 ) tmp . append ( options [ opt ] . display ) tmp . append ( options [ opt ] . getStr ( ) ) tmp . append ( options [ opt ] . type ) tmp . append ( options [ opt ] . required ) table . append ( tmp ) if len ( table ) > 0 : config . pptable ( [ settings ] + table ) else : Msg ( '\tModule has no options.' ) print color . B_YELLOW + '0' + color . B_GREEN + ') ' + color . B_WHITE + 'Back' + color . END return table