From fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 10 Apr 2020 10:05:17 +0200 Subject: Support custom PROGRAM_PREFIX --- icebox/icebox_explain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'icebox/icebox_explain.py') diff --git a/icebox/icebox_explain.py b/icebox/icebox_explain.py index f843c09..25061ab 100755 --- a/icebox/icebox_explain.py +++ b/icebox/icebox_explain.py @@ -17,7 +17,7 @@ import icebox from icebox import re_match_cached, re_search_cached -import getopt, sys, re +import getopt, sys, re, os print_bits = False print_map = False @@ -26,7 +26,7 @@ print_all = False def usage(): print(""" -Usage: icebox_explain [options] [bitmap.asc] +Usage: %s [options] [bitmap.asc] -b print config bit names for each config statement @@ -39,7 +39,7 @@ Usage: icebox_explain [options] [bitmap.asc] -t ' ' print only the specified tile -""") +""" % os.path.basename(sys.argv[0])) sys.exit(0) try: -- cgit v1.2.3