diff --git a/.changelog/unreleased/improvements/1087-time-docs.md b/.changelog/unreleased/improvements/1087-time-docs.md new file mode 100644 index 0000000000..d1e598e473 --- /dev/null +++ b/.changelog/unreleased/improvements/1087-time-docs.md @@ -0,0 +1,2 @@ +- Improved the CLI description of the start time node argument. + ([#1087](https://github.com/anoma/namada/pull/1087)) \ No newline at end of file diff --git a/apps/src/lib/cli.rs b/apps/src/lib/cli.rs index 08d6dfe722..d6d238c859 100644 --- a/apps/src/lib/cli.rs +++ b/apps/src/lib/cli.rs @@ -1702,11 +1702,14 @@ pub mod args { } fn def(app: App) -> App { - app.arg( - NAMADA_START_TIME - .def() - .about("The start time of the ledger."), - ) + app.arg(NAMADA_START_TIME.def().about( + "The start time of the ledger. Accepts a relaxed form of \ + RFC3339. A space or a 'T' are accepted as the separator \ + between the date and time components. Additional spaces are \ + allowed between each component.\nAll of these examples are \ + equivalent:\n2023-01-20T12:12:12Z\n2023-01-20 \ + 12:12:12Z\n2023- 01-20T12: 12:12Z", + )) } }