From 8d60bac7ecf182c0504f13a1957624374fc57ccd Mon Sep 17 00:00:00 2001 From: thetric <broj.dominik@gmail> Date: Mon, 3 Apr 2017 13:56:48 +0200 Subject: [PATCH] fix: do not reset maxFileSize to 0 closes #6 --- .../groovy/com/github/thetric/iliasdownloader/cli/Cli.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cli/src/main/groovy/com/github/thetric/iliasdownloader/cli/Cli.groovy b/ui/cli/src/main/groovy/com/github/thetric/iliasdownloader/cli/Cli.groovy index 1489d65..1bf18d2 100644 --- a/ui/cli/src/main/groovy/com/github/thetric/iliasdownloader/cli/Cli.groovy +++ b/ui/cli/src/main/groovy/com/github/thetric/iliasdownloader/cli/Cli.groovy @@ -66,7 +66,7 @@ final class Cli { } private void handleOptsReal(OptionAccessor options) { - long size = options.s == false ? 0 : options.s as Long + Long size = options.s == false ? null : options.s as Long CliOptions cliOptions = new CliOptions( syncDir: Paths.get(options.d as String), showCourseSelection: options.c as boolean,