Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2019-01-24 08:24:08 +0300
committerCasey Deccio <casey@deccio.net>2019-01-24 08:24:08 +0300
commit475d5497fdc2b3ada461399278c0f8cf6e6fc652 (patch)
treedcd81ced3e5709842e50557a866c35febc086a9d /bin
parent8d716ea3a8d90b66f419cbfef550afc64353f563 (diff)
Don't show usage on every error
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dnsviz4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dnsviz b/bin/dnsviz
index 04cadd3..c2bbdc1 100755
--- a/bin/dnsviz
+++ b/bin/dnsviz
@@ -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':