summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-01-18 13:00:57 -0600
committerBryan Bishop <kanzure@gmail.com>2012-01-18 13:00:57 -0600
commit8db5a6b694f5e76c6192ff8c4232468e8d855e21 (patch)
tree36936912dc9d260e4e5bee4a7431a2dd764f8991 /extras
parent38370d844d2285c320b267040bf1a9f64a4ca3f8 (diff)
update pretty_text to use a default label
hg-commit-id: 9fefdb092622
Diffstat (limited to 'extras')
-rw-r--r--extras/pretty_text.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/pretty_text.py b/extras/pretty_text.py
index 6d0cb61d..9e669aca 100644
--- a/extras/pretty_text.py
+++ b/extras/pretty_text.py
@@ -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]