File tree 2 files changed +12
-10
lines changed 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -3870,6 +3870,12 @@ impl Arg {
3870
3870
self . long_help . as_ref ( )
3871
3871
}
3872
3872
3873
+ /// Get the placement within help
3874
+ #[ inline]
3875
+ pub fn get_display_order ( & self ) -> usize {
3876
+ self . disp_ord . unwrap_or ( 999 )
3877
+ }
3878
+
3873
3879
/// Get the help heading specified for this argument, if any
3874
3880
#[ inline]
3875
3881
pub fn get_help_heading ( & self ) -> Option < & str > {
@@ -4422,11 +4428,6 @@ impl Arg {
4422
4428
pub ( crate ) fn is_multiple ( & self ) -> bool {
4423
4429
self . is_multiple_values_set ( ) || matches ! ( * self . get_action( ) , ArgAction :: Append )
4424
4430
}
4425
-
4426
- #[ cfg( feature = "help" ) ]
4427
- pub ( crate ) fn get_display_order ( & self ) -> usize {
4428
- self . disp_ord . unwrap_or ( 999 )
4429
- }
4430
4431
}
4431
4432
4432
4433
impl From < & ' _ Arg > for Arg {
Original file line number Diff line number Diff line change @@ -3462,6 +3462,12 @@ impl Command {
3462
3462
self . long_version . as_deref ( )
3463
3463
}
3464
3464
3465
+ /// Get the placement within help
3466
+ #[ inline]
3467
+ pub fn get_display_order ( & self ) -> usize {
3468
+ self . disp_ord . unwrap_or ( 999 )
3469
+ }
3470
+
3465
3471
/// Get the authors of the cmd.
3466
3472
#[ inline]
3467
3473
pub fn get_author ( & self ) -> Option < & str > {
@@ -4777,11 +4783,6 @@ impl Command {
4777
4783
. map ( |sc| sc. get_name ( ) )
4778
4784
}
4779
4785
4780
- #[ cfg( feature = "help" ) ]
4781
- pub ( crate ) fn get_display_order ( & self ) -> usize {
4782
- self . disp_ord . unwrap_or ( 999 )
4783
- }
4784
-
4785
4786
pub ( crate ) fn write_help_err ( & self , mut use_long : bool ) -> StyledStr {
4786
4787
debug ! (
4787
4788
"Command::write_help_err: {}, use_long={:?}" ,
You can’t perform that action at this time.
0 commit comments