From efe5340b4b1bad27be54dac5c64fc25ff59ff329 Mon Sep 17 00:00:00 2001 From: David McMackins II Date: Tue, 14 Jul 2015 17:56:28 -0500 Subject: Now failing with shorter help message --- jarsnap.py | 6 ++++-- 1 file 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) -- cgit v1.2.3