Skip to content

Commit

Permalink
integation+bugfix: Fix regression, document title missing ..
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorGray committed Jun 15, 2024
1 parent d21b18b commit 0b390b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/examples/complex-app.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Command-Line Help for complex-app
# Command-Line Help for `complex-app`

This document contains the help content for the `complex-app` command-line program.

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn write_help_markdown(

let title = match options.title {
Some(ref title) => title.to_owned(),
None => format!("Command-Line Help for {title_name}"),
None => format!("Command-Line Help for `{title_name}`"),
};
writeln!(buffer, "# {title}\n",).unwrap();

Expand Down
4 changes: 2 additions & 2 deletions tests/test_markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Options:
&MarkdownOptions::new().show_footer(false)
),
"\
# Command-Line Help for my-program-display-name
# Command-Line Help for `my-program-display-name`
This document contains the help content for the `my-program-display-name` command-line program.
Expand Down Expand Up @@ -129,7 +129,7 @@ Options:
&MarkdownOptions::new().show_footer(false)
),
"\
# Command-Line Help for my-program-display-name
# Command-Line Help for `my-program-display-name`
This document contains the help content for the `my-program-display-name` command-line program.
Expand Down

0 comments on commit 0b390b9

Please sign in to comment.