You're parsing "true,"
which is not the same as "true"
.
Get rid of the comma in your invocation:
java ScraperTestRunner1 true "/Desktop/imputfile.txt"
Command line arguments aren't specified as a comma-separated list; they're space-separated (with double quotes to allow spaces within an argument).