@@ -38,6 +38,7 @@ static OPT_TOTAL: &str = "total";
3838static OPT_HUMAN_READABLE_BINARY : & str = "human-readable-binary" ;
3939static OPT_HUMAN_READABLE_DECIMAL : & str = "human-readable-decimal" ;
4040static OPT_INODES : & str = "inodes" ;
41+ static OPT_MEGA : & str = "mega" ;
4142static OPT_KILO : & str = "kilo" ;
4243static OPT_LOCAL : & str = "local" ;
4344static OPT_NO_SYNC : & str = "no-sync" ;
@@ -517,7 +518,7 @@ pub fn uu_app() -> Command {
517518 . short ( 'B' )
518519 . long ( "block-size" )
519520 . value_name ( "SIZE" )
520- . overrides_with_all ( [ OPT_KILO , OPT_BLOCKSIZE ] )
521+ . overrides_with_all ( [ OPT_KILO , OPT_BLOCKSIZE , OPT_MEGA ] )
521522 . help ( translate ! ( "df-help-block-size" ) ) ,
522523 )
523524 . arg (
@@ -551,11 +552,18 @@ pub fn uu_app() -> Command {
551552 . help ( translate ! ( "df-help-inodes" ) )
552553 . action ( ArgAction :: SetTrue ) ,
553554 )
555+ . arg (
556+ Arg :: new ( OPT_MEGA )
557+ . short ( 'm' )
558+ . help ( translate ! ( "df-help-mega" ) )
559+ . overrides_with_all ( [ OPT_BLOCKSIZE , OPT_KILO , OPT_MEGA ] )
560+ . action ( ArgAction :: SetTrue ) ,
561+ )
554562 . arg (
555563 Arg :: new ( OPT_KILO )
556564 . short ( 'k' )
557565 . help ( translate ! ( "df-help-kilo" ) )
558- . overrides_with_all ( [ OPT_BLOCKSIZE , OPT_KILO ] )
566+ . overrides_with_all ( [ OPT_BLOCKSIZE , OPT_KILO , OPT_MEGA ] )
559567 . action ( ArgAction :: SetTrue ) ,
560568 )
561569 . arg (
0 commit comments