aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/icebox_hlc2asc.py
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-04-10 10:05:17 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2020-04-10 10:05:17 +0200
commitfe3086a7339f0c2731fb1a14f6ef0e4d93a0377e (patch)
tree47dbe6b20205c9faecee0217a863486e68ef253e /icebox/icebox_hlc2asc.py
parentd1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff)
downloadicestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.gz
icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.bz2
icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.zip
Support custom PROGRAM_PREFIX
Diffstat (limited to 'icebox/icebox_hlc2asc.py')
-rwxr-xr-xicebox/icebox_hlc2asc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/icebox/icebox_hlc2asc.py b/icebox/icebox_hlc2asc.py
index a95f610..59d2f69 100755
--- a/icebox/icebox_hlc2asc.py
+++ b/icebox/icebox_hlc2asc.py
@@ -1147,7 +1147,7 @@ def main():
except getopt.GetoptError as e:
sys.stderr.write("%s: %s\n" % (program_short_name, e.msg))
sys.stderr.write("Try `%s --help' for more information.\n"
- % sys.argv[0])
+ % program_short_name)
sys.exit(1)
for opt, arg in opts:
@@ -1161,7 +1161,7 @@ Usage: %s [OPTION]... FILE
If you have a bug report, please file an issue on github:
https://github.com/rlutz/icestorm/issues
-""" % sys.argv[0])
+""" % program_short_name)
sys.exit(0)
if opt == '--version':
@@ -1184,13 +1184,13 @@ GNU General Public License for more details.
if not args:
sys.stderr.write("%s: missing argument\n" % (program_short_name))
sys.stderr.write("Try `%s --help' for more information.\n"
- % sys.argv[0])
+ % program_short_name)
sys.exit(1)
if len(args) != 1:
sys.stderr.write("%s: too many arguments\n" % (program_short_name))
sys.stderr.write("Try `%s --help' for more information.\n"
- % sys.argv[0])
+ % program_short_name)
sys.exit(1)
if args[0] == '-':