shithub: pokered

ref: b3aa565d8a43c9c169efec01e7ab1a257c9b66d3
dir: /extras/pretty_text.py/

View raw version
#!/usr/bin/python
#author: Bryan Bishop <[email protected]>
#date: 2012-01-16
from optparse import OptionParser
from analyze_texts import text_pretty_printer_at

def main():
    usage = "usage: %prog address label"
    parser = OptionParser(usage)
    (options, args) = parser.parse_args()
    if len(args) != 2:
        parser.error("we need both an address and a label")
    address = int(args[0], 16)
    label = args[1]

    text_pretty_printer_at(address, label)

if __name__ == "__main__":
    main()