Skip to content

Commit

Permalink
correct setting in readme is --durations
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Dec 19, 2020
1 parent 27aaf58 commit 62ad304
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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"
Expand Down
4 changes: 4 additions & 0 deletions 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"
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Expand Up @@ -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<T>` 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
Expand Down Expand Up @@ -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`


Expand Down

0 comments on commit 62ad304

Please sign in to comment.