Mercurial > cgi-bin > hgweb.cgi > ImagePrep
diff src/name/blackcap/imageprep/Settings.kt @ 4:5234e4500d45
Command-line arguments (only partially tested).
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 17 Jul 2020 14:51:41 -0700 |
parents | a6f9b51d5e8d |
children | 884f1415a330 |
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/Settings.kt Fri Jul 17 11:48:07 2020 -0700 +++ b/src/name/blackcap/imageprep/Settings.kt Fri Jul 17 14:51:41 2020 -0700 @@ -10,11 +10,11 @@ object Settings { private val homeDir = System.getProperty("user.home") - val maxDimension = _PROPS.getProperty("maxDimension").toInt() - val outputQuality = _PROPS.getProperty("outputQuality").toInt() - val outputSuffix = _PROPS.getProperty("outputSuffix") - val outputTo = tilde(_PROPS.getProperty("outputTo")) - val outputToInputDir = strToBool(_PROPS.getProperty("outputToInputDir")) + var maxDimension = _PROPS.getProperty("maxDimension").toInt() + var outputQuality = _PROPS.getProperty("outputQuality").toInt() + var outputSuffix = _PROPS.getProperty("outputSuffix") + var outputTo = tilde(_PROPS.getProperty("outputTo")) + var outputToInputDir = strToBool(_PROPS.getProperty("outputToInputDir")) private fun tilde(s: String?): String { if (s.isNullOrEmpty())