Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Throw exception on non boolean argument to ignoreInvalidDefaults
Change-Id: I8818fe9505397e933cd7869fd72c951ef769fcc9
  • Loading branch information
Falmarri committed Nov 9, 2015
1 parent 8fe849e commit ef67153
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -95,7 +95,7 @@ object SourceCodeGenerator {
case profile :: jdbcDriver :: url :: outputDir :: pkg :: user :: password :: Nil =>
run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), false)
case profile:: jdbcDriver :: url :: outputDir :: pkg :: user :: password :: ignoreInvalidDefaults :: Nil =>
run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), Try(ignoreInvalidDefaults.toBoolean).getOrElse(false))
run(profile, jdbcDriver, url, outputDir, pkg, Some(user), Some(password), ignoreInvalidDefaults.toBoolean)
case _ => {
println("""
|Usage:
Expand Down

0 comments on commit ef67153

Please sign in to comment.