diff options
author | David McMackins II <contact@mcmackins.org> | 2015-07-14 17:56:28 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2015-07-14 17:56:28 -0500 |
commit | efe5340b4b1bad27be54dac5c64fc25ff59ff329 (patch) | |
tree | 1292693645d79c32127b01506aa1b4f439215b74 | |
parent | dad8fdce5ee2cf8ceef0ab37692b34be76e75c05 (diff) |
Now failing with shorter help message
-rw-r--r-- | jarsnap.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |