From 8727faa8b37066c7570457931854195d285675c0 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 6 Apr 2018 08:26:28 -0400 Subject: [PATCH] forward -debug to sbt `-debug` is a legitimate command since 0.13.13, but it's been impossible to use it because Bash eats it. This allows log level to be set to debug level. (similar to `-warn` setting to warn level) Ref https://github.com/sbt/sbt/pull/2742 --- src/universal/bin/sbt-launch-lib.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt-launch-lib.bash b/src/universal/bin/sbt-launch-lib.bash index c03c7a771..2a106a225 100755 --- a/src/universal/bin/sbt-launch-lib.bash +++ b/src/universal/bin/sbt-launch-lib.bash @@ -177,7 +177,7 @@ process_args () { case "$1" in -h|-help) usage; exit 1 ;; -v|-verbose) verbose=1 && shift ;; - -d|-debug) debug=1 && shift ;; + -d|-debug) debug=1 && addSbt "-debug" && shift ;; -ivy) require_arg path "$1" "$2" && addJava "-Dsbt.ivy.home=$2" && shift 2 ;; -mem) require_arg integer "$1" "$2" && sbt_mem="$2" && shift 2 ;;