diff options
author | Casey Deccio <casey@deccio.net> | 2019-01-24 08:24:08 +0300 |
---|---|---|
committer | Casey Deccio <casey@deccio.net> | 2019-01-24 08:24:08 +0300 |
commit | 475d5497fdc2b3ada461399278c0f8cf6e6fc652 (patch) | |
tree | dcd81ced3e5709842e50557a866c35febc086a9d /bin | |
parent | 8d716ea3a8d90b66f419cbfef550afc64353f563 (diff) |
Don't show usage on every error
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dnsviz | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,7 +58,7 @@ def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'p:') except getopt.GetoptError as e: - usage(str(e)) + sys.stderr.write('%s\n' % str(e)) sys.exit(1) opts = dict(opts) @@ -94,7 +94,7 @@ def main(): if exc_frame.tb_next.tb_next is not None: raise - usage('Invalid command: %s' % command) + sys.stderr.write('Invalid command: %s\n' % command) sys.exit(1) if args[0] == 'help': |