From 1a2352d17fda4cc6cb88b03e2e31207ed9d07e97 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Wed, 4 Apr 2018 16:48:35 +0200 Subject: [PATCH] fix #195 - Unrecognized CLI options gives huge stacktrace --- src/dscanner/main.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dscanner/main.d b/src/dscanner/main.d index 7441ba9..5b9dc94 100644 --- a/src/dscanner/main.d +++ b/src/dscanner/main.d @@ -104,6 +104,11 @@ else stderr.writeln(e.msg); return 1; } + catch (GetOptException e) + { + stderr.writeln(e.msg); + return 1; + } if (muffin) {