mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #3160 from sylvestre/doc-order
user docs: move the examples after the options
This commit is contained in:
commit
c56a879a68
1 changed files with 8 additions and 4 deletions
|
@ -72,8 +72,8 @@ fn write_markdown(
|
|||
write_version(&mut w, app)?;
|
||||
write_usage(&mut w, app, name)?;
|
||||
write_description(&mut w, app)?;
|
||||
write_examples(&mut w, name, tldr_zip)?;
|
||||
write_options(&mut w, app)
|
||||
write_options(&mut w, app)?;
|
||||
write_examples(&mut w, name, tldr_zip)
|
||||
}
|
||||
|
||||
fn write_version(w: &mut impl Write, app: &App) -> io::Result<()> {
|
||||
|
@ -201,7 +201,11 @@ fn write_options(w: &mut impl Write, app: &App) -> io::Result<()> {
|
|||
write!(w, "</code>")?;
|
||||
}
|
||||
writeln!(w, "</dt>")?;
|
||||
writeln!(w, "<dd>\n\n{}\n\n</dd>", arg.get_help().unwrap_or_default())?;
|
||||
writeln!(
|
||||
w,
|
||||
"<dd>\n\n{}\n\n</dd>",
|
||||
arg.get_help().unwrap_or_default().replace("\n", "<br />")
|
||||
)?;
|
||||
}
|
||||
writeln!(w, "</dl>")
|
||||
writeln!(w, "</dl>\n")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue