mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-13 08:44:49 +13:00
update pretty_text to use a default label
hg-commit-id: 9fefdb092622
This commit is contained in:
parent
38370d844d
commit
8db5a6b694
|
|
@ -8,7 +8,10 @@ def main():
|
|||
usage = "usage: %prog address label"
|
||||
parser = OptionParser(usage)
|
||||
(options, args) = parser.parse_args()
|
||||
if len(args) != 2:
|
||||
if len(args) == 1:
|
||||
print "usage: python pretty_text.py address label"
|
||||
args.append("UnnamedText_" + (args[0].replace("0x", "")))
|
||||
elif len(args) != 2:
|
||||
parser.error("we need both an address and a label")
|
||||
address = int(args[0], 16)
|
||||
label = args[1]
|
||||
|
|
|
|||
Loading…
Reference in a new issue