#18698 add `DurationOption` type for duration-type config options
Issue created by
tdyas
There are several Pants options which take an integer value (of varying time units) in order to configure duration-related configuration like timeout duration. Some of the options use seconds, others use milliseconds. In some cases, the time unit is encoded into the option name (
-millis
suffix).
To reduce user confusion, we should add a
DurationOption
type for these options which could take human-readable time syntax, for example
2mins30secs
or
1234ms
and just convert to a single type internally.
pantsbuild/pants