diff --git a/build.sbt b/build.sbt index c7ceec5..00ca4dc 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -lazy val tscfgVersion = setVersion("0.9.981") +lazy val tscfgVersion = setVersion("0.9.982") organization := "com.github.carueda" name := "tscfg" diff --git a/changelog.md b/changelog.md index 3767126..34e3dfd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +2020-12 - 0.9.982 + +- correct setting in readme is `--durations` not `--duration` + 2020-10 - 0.9.981 - resolve #69 "Use consistent formatter for the generated code" diff --git a/readme.md b/readme.md index e27029a..cb808f6 100644 --- a/readme.md +++ b/readme.md @@ -292,12 +292,12 @@ The following basic types are supported: | `boolean` | `boolean` / `Boolean` | `Boolean` / `Option[Boolean]` | `size` | `long` / `Long` | `Long` / `Option[Long]` | `duration` | `long` / `Long` | `Long` / `Option[Long]` -| `duration` (using `--duration` flag) | `Duration` / `Duration` | `Duration` / `Option[Duration]` +| `duration` (using `--durations` flag) | `Duration` / `Duration` | `Duration` / `Option[Duration]` > **NOTE** > - please read `Optional` instead of the `T` values in the java "opt" column above if using the `--java:optionals` flag. -> - using the `--duration` flag, `java.time.Duration` is used instead of `long` / `Long`. See [durations](#durations) for further information. +> - using the `--durations` flag, `java.time.Duration` is used instead of `long` / `Long`. See [durations](#durations) for further information. #### size-in-bytes @@ -337,7 +337,7 @@ durations { ... } ``` -Using the `--duration` flag, the reported value will be a `java.time.Duration` instead of a `long` / `Long` and the suffix will be ignored: +Using the `--durations` flag, the reported value will be a `java.time.Duration` instead of a `long` / `Long` and the suffix will be ignored: `"duration:hours | 3day"` is `java.time.Duration.ofDays(3)` if value is missing or whatever is provided converted to a `java.time.Duration`