Skip to content

Commit

Permalink
feat(docs): show command aliases in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 4, 2023
1 parent 41b281e commit 0dc7067
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Expand Up @@ -425,6 +425,15 @@ impl OroCommand for HelpMarkdownCmd {
println!("```");
println!("oro {usage}");
println!("```");
let aliases = subcmd.get_visible_aliases().collect::<Vec<_>>();
if !aliases.is_empty() {
println!();
println!(
"[alias{}: {}]",
if aliases.len() == 1 { "" } else { "es" },
aliases.join(", ")
);
}
continue;
}

Expand Down

0 comments on commit 0dc7067

Please sign in to comment.