Browse Source

Make CLI handle all parameter error kinds

Closes #3
master
Gwendal 7 years ago
parent
commit
4cfc571581
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/kotlin/bandcampcollectiondownloader/Main.kt

+ 1
- 1
src/main/kotlin/bandcampcollectiondownloader/Main.kt View File

@ -43,7 +43,7 @@ fun main(args: Array<String>) {
}
// 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


Loading…
Cancel
Save