Additions:
require can be trapped with [[ExceptionHandling try/catch ]] or with a conditional same as errors from [[CommandSet "throw on error" (-e)]].
Deletions:
Additions:
On failure (if caught or not) prints to standard error "requires version: <require test>"
} catch e {
} catch e {
Deletions:
Additions:
Example require version 1.0.2. If version is less then 1.0.2 then an exception is thrown (which will abort a script).
Deletions:
Additions:
If the required version is greater then the current version then throws an exception equivalent to the [[CommandSet "throw on error" (-e)]] flag.
require can be trapped with [[CommandTryCatch try/catch ]] or with a conditional same as errors from [[CommandSet "throw on error" (-e)]].
[[CommandXVersion]]
require can be trapped with [[CommandTryCatch try/catch ]] or with a conditional same as errors from [[CommandSet "throw on error" (-e)]].
[[CommandXVersion]]
Deletions:
require can be trapped with [[CommandTryCatch try/catch ]] or with a conditional same as errors from [[ExitOnError exit on error]].