@@ -190,7 +190,7 @@ def _display_read_note(result: dict[str, Any], *, include_frontmatter: bool = Fa
190190
191191 console .print (Panel (header , expand = False ))
192192
193- # Trigger: --include- frontmatter was passed; the MCP tool populates "frontmatter".
193+ # Trigger: --frontmatter was passed; the MCP tool populates "frontmatter".
194194 # Why: the JSON payload always carries a "frontmatter" key regardless of the flag,
195195 # so checking non-empty alone would render it even without the flag. The flag
196196 # must be threaded in to gate the panel.
@@ -207,7 +207,7 @@ def _display_read_note(result: dict[str, Any], *, include_frontmatter: bool = Fa
207207 fm_table .add_row (markup_escape (str (key )), markup_escape (str (value )))
208208 console .print (Panel (fm_table , title = "[dim]frontmatter[/dim]" , expand = False ))
209209
210- # Trigger: --include- frontmatter makes the API return the literal file, so
210+ # Trigger: --frontmatter makes the API return the literal file, so
211211 # content starts with the frontmatter block the panel above already shows.
212212 # Why: rendering it again through Markdown duplicates the frontmatter (and
213213 # Markdown mangles the --- fences into rules/headings).
@@ -385,11 +385,11 @@ def _plain_read_note(result: dict[str, Any]) -> None:
385385 """Render read-note content faithfully: the note body, or the literal file.
386386
387387 Plain mode adds NO decoration: no header line, no synthesized frontmatter
388- block, no placeholder for empty notes. Without --include- frontmatter the
388+ block, no placeholder for empty notes. Without --frontmatter the
389389 API returns the note body; with it, the literal file (frontmatter block
390390 included). Either is printed verbatim, trimmed only of the surrounding
391391 newline artifacts the API keeps from frontmatter stripping, so the output
392- round-trips (e.g. ``read-note X --plain --include- frontmatter > note.md``).
392+ round-trips (e.g. ``read-note X --plain --frontmatter > note.md``).
393393 """
394394 content = result .get ("content" , "" )
395395 body = content .strip ("\n " ) if content else ""
@@ -595,7 +595,10 @@ def write_note(
595595def read_note (
596596 identifier : str ,
597597 include_frontmatter : bool = typer .Option (
598- False , "--include-frontmatter" , help = "Include YAML frontmatter in output"
598+ False ,
599+ "--frontmatter" ,
600+ "--include-frontmatter" ,
601+ help = "Include YAML frontmatter in output (--include-frontmatter is a deprecated alias)" ,
599602 ),
600603 json_output : bool = typer .Option (
601604 False , "--json" , help = "Output raw JSON instead of formatted display"
@@ -629,7 +632,7 @@ def read_note(
629632 Examples:
630633
631634 bm tool read-note my-note
632- bm tool read-note my-note --include- frontmatter
635+ bm tool read-note my-note --frontmatter
633636 bm tool read-note my-note --plain
634637 bm tool read-note my-note --json
635638 """
0 commit comments