summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2015-07-14 17:56:28 -0500
committerDavid McMackins II <contact@mcmackins.org>2015-07-14 17:56:28 -0500
commitefe5340b4b1bad27be54dac5c64fc25ff59ff329 (patch)
tree1292693645d79c32127b01506aa1b4f439215b74
parentdad8fdce5ee2cf8ceef0ab37692b34be76e75c05 (diff)
Now failing with shorter help message
-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)