From dd4eb82355c582908e741e1723f676f515114d48 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Sat, 11 Mar 2023 18:37:42 +0100 Subject: [PATCH 1/2] build: add missing field 'help' to option 'date' --- src/towncrier/build.py | 7 ++++++- src/towncrier/newsfragments/488.misc | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/towncrier/newsfragments/488.misc diff --git a/src/towncrier/build.py b/src/towncrier/build.py index ebe75e90..6752b84e 100644 --- a/src/towncrier/build.py +++ b/src/towncrier/build.py @@ -78,7 +78,12 @@ def _validate_answer(ctx: Context, param: Option, value: bool) -> bool: default=None, help="Render the news fragments using given version.", ) -@click.option("--date", "project_date", default=None) +@click.option( + "--date", + "project_date", + default=None, + help="Render the news fragments using the given date.", +) @click.option( "--yes", "answer_yes", diff --git a/src/towncrier/newsfragments/488.misc b/src/towncrier/newsfragments/488.misc new file mode 100644 index 00000000..a3ef88bb --- /dev/null +++ b/src/towncrier/newsfragments/488.misc @@ -0,0 +1 @@ +Add missing field 'help' to CLI option 'date' From 0a76067a32fce011b57c08827e8d8f2510bff30c Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 5 Apr 2023 19:56:05 +0200 Subject: [PATCH 2/2] Update src/towncrier/newsfragments/488.misc --- src/towncrier/newsfragments/488.misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/towncrier/newsfragments/488.misc b/src/towncrier/newsfragments/488.misc index a3ef88bb..59a0c584 100644 --- a/src/towncrier/newsfragments/488.misc +++ b/src/towncrier/newsfragments/488.misc @@ -1 +1 @@ -Add missing field 'help' to CLI option 'date' +Added help output for `build`'s `--date` option.