From 4cfc571581b2545e0270815f7c0189ae3c1ad8b0 Mon Sep 17 00:00:00 2001 From: Gwendal Date: Sat, 18 Aug 2018 13:00:56 +0200 Subject: [PATCH] Make CLI handle all parameter error kinds Closes #3 --- src/main/kotlin/bandcampcollectiondownloader/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/bandcampcollectiondownloader/Main.kt b/src/main/kotlin/bandcampcollectiondownloader/Main.kt index a692854..6b7bd4c 100644 --- a/src/main/kotlin/bandcampcollectiondownloader/Main.kt +++ b/src/main/kotlin/bandcampcollectiondownloader/Main.kt @@ -43,7 +43,7 @@ fun main(args: Array) { } // If the wrong arguments are given, show help + error message - catch (e: CommandLine.MissingParameterException) { + catch (e: CommandLine.ParameterException) { CommandLine.usage(Args(), System.out) System.err.println(e.message) return