You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(clap_mangen): Take into consideration display_order
In #3362 we have an issue where when we configure an arg via
.display_order(int), and then generate a manpage,
the synposis and options will render the order the args were
provided to the App rather than the order they were configured
e.g
Command::new(name)
arg(Arg::new("few").short('b').display_order(2))
arg(Arg::new("bar").short('a').display_order(1))
will show
...
SYNOPSIS
<name> [-b] [-a] ...
...
OPTIONS
-b
-a
instead of
...
SYNOPSIS
<name> [-a] [-b] ...
...
OPTIONS
-a
-b
and so on. This fix adds sorting in the synopsis and
options functions responsible for generating the
corresponding synopsis and options sections of the manpage.
0 commit comments