summaryrefslogtreecommitdiff
path: root/jarsnap.py
diff options
context:
space:
mode:
Diffstat (limited to 'jarsnap.py')
-rw-r--r--jarsnap.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/jarsnap.py b/jarsnap.py
index ad6547f..93cd09c 100644
--- a/jarsnap.py
+++ b/jarsnap.py
@@ -77,12 +77,14 @@ There is NO WARRANTY, to the extent permitted by law.
Written by {}""".format(__title__, __version__, __author__)
+ _HELPEXIT = 'Use `{} --help` for more information.'.format(__title__)
+
try:
opts, args = gnu_getopt(argv[1:], 'vho:m:',
['version', 'help', 'output=', 'main-class='])
except GetoptError as e:
print('{}: {}'.format(__title__, e))
- exit(_HELP)
+ exit(_HELPEXIT)
main_class = ''
output_path = 'fat.jar'
@@ -101,7 +103,7 @@ Written by {}""".format(__title__, __version__, __author__)
if not main_class:
print('{}: main class was not set!'.format(__title__))
- exit(_HELP)
+ exit(_HELPEXIT)
make_fat_jar(args, main_class, output_path)