fix(clap_mangen): Hide hidden flags in synopsis
@@ -31,7 +31,7 @@ pub(crate) fn description(roff: &mut Roff, cmd: &clap::Command) {
pub(crate) fn synopsis(roff: &mut Roff, cmd: &clap::Command) {
let mut line = vec![bold(cmd.get_name()), roman(" ")];
- for opt in cmd.get_arguments() {
+ for opt in cmd.get_arguments().filter(|i| !i.is_hide_set()) {
let (lhs, rhs) = option_markers(opt);
match (opt.get_short(), opt.get_long()) {
(Some(short), Some(long)) => {
