Skip to content

Commit e9f388a

Browse files
committed
add "-D" for --rst_on_stdin
1 parent c815e4b commit e9f388a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blurb/blurb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def _find_smart_matches(section):
909909
@app.command(name="add")
910910
def add(*, issue: Annotated[Optional[str], Parameter(alias=["-i"])] = None,
911911
section: Annotated[Optional[str], Parameter(alias=["-s"])] = None,
912-
rst_on_stdin: bool = False):
912+
rst_on_stdin: Annotated[bool, Parameter(alias=["-D"])] = False):
913913
# This docstring template is formatted after the function definition.
914914
"""Add a new Misc/NEWS entry (default command).
915915
@@ -1225,7 +1225,7 @@ def export():
12251225
@app.default
12261226
def default_command(*, issue: Annotated[Optional[str], Parameter(alias=["-i"])] = None,
12271227
section: Annotated[Optional[str], Parameter(alias=["-s"])] = None,
1228-
rst_on_stdin: bool = False):
1228+
rst_on_stdin: Annotated[bool, Parameter(alias=["-D"])] = False):
12291229
"""Default to 'add' command when no subcommand specified."""
12301230
add(issue=issue, section=section, rst_on_stdin=rst_on_stdin)
12311231

0 commit comments

Comments
 (0)