mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
pretty_text - print out texts from command line
hg-commit-id: 918000556f93
This commit is contained in:
parent
40c2ce0bec
commit
8dc5ba8315
19
extras/pretty_text.py
Normal file
19
extras/pretty_text.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
#author: Bryan Bishop <kanzure@gmail.com>
|
||||||
|
#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()
|
Loading…
Reference in a new issue