@@ -253,7 +253,8 @@ pub(crate) fn cli() -> Command<'static> {
253253 . about ( "The Rust toolchain installer" )
254254 . after_help ( RUSTUP_HELP )
255255 . global_setting ( AppSettings :: DeriveDisplayOrder )
256- . setting ( AppSettings :: SubcommandRequiredElseHelp )
256+ . subcommand_required ( true )
257+ . arg_required_else_help ( true )
257258 . arg (
258259 verbose_arg ( "Enable verbose output" ) ,
259260 )
@@ -400,7 +401,8 @@ pub(crate) fn cli() -> Command<'static> {
400401 Command :: new ( "toolchain" )
401402 . about ( "Modify or query the installed toolchains" )
402403 . after_help ( TOOLCHAIN_HELP )
403- . setting ( AppSettings :: SubcommandRequiredElseHelp )
404+ . subcommand_required ( true )
405+ . arg_required_else_help ( true )
404406 . subcommand (
405407 Command :: new ( "list" )
406408 . about ( "List installed toolchains" )
@@ -508,7 +510,8 @@ pub(crate) fn cli() -> Command<'static> {
508510 . subcommand (
509511 Command :: new ( "target" )
510512 . about ( "Modify a toolchain's supported targets" )
511- . setting ( AppSettings :: SubcommandRequiredElseHelp )
513+ . subcommand_required ( true )
514+ . arg_required_else_help ( true )
512515 . subcommand (
513516 Command :: new ( "list" )
514517 . about ( "List installed and available targets" )
@@ -571,7 +574,8 @@ pub(crate) fn cli() -> Command<'static> {
571574 . subcommand (
572575 Command :: new ( "component" )
573576 . about ( "Modify a toolchain's installed components" )
574- . setting ( AppSettings :: SubcommandRequiredElseHelp )
577+ . subcommand_required ( true )
578+ . arg_required_else_help ( true )
575579 . subcommand (
576580 Command :: new ( "list" )
577581 . about ( "List installed and available components" )
@@ -630,7 +634,8 @@ pub(crate) fn cli() -> Command<'static> {
630634 Command :: new ( "override" )
631635 . about ( "Modify directory toolchain overrides" )
632636 . after_help ( OVERRIDE_HELP )
633- . setting ( AppSettings :: SubcommandRequiredElseHelp )
637+ . subcommand_required ( true )
638+ . arg_required_else_help ( true )
634639 . subcommand (
635640 Command :: new ( "list" ) . about ( "List directory toolchain overrides" ) ,
636641 )
@@ -763,7 +768,8 @@ pub(crate) fn cli() -> Command<'static> {
763768 . subcommand (
764769 Command :: new ( "self" )
765770 . about ( "Modify the rustup installation" )
766- . setting ( AppSettings :: SubcommandRequiredElseHelp )
771+ . subcommand_required ( true )
772+ . arg_required_else_help ( true )
767773 . subcommand ( Command :: new ( "update" ) . about ( "Download and install updates to rustup" ) )
768774 . subcommand (
769775 Command :: new ( "uninstall" )
@@ -777,7 +783,8 @@ pub(crate) fn cli() -> Command<'static> {
777783 . subcommand (
778784 Command :: new ( "set" )
779785 . about ( "Alter rustup settings" )
780- . setting ( AppSettings :: SubcommandRequiredElseHelp )
786+ . subcommand_required ( true )
787+ . arg_required_else_help ( true )
781788 . subcommand (
782789 Command :: new ( "default-host" )
783790 . about ( "The triple used to identify toolchains when not specified" )
0 commit comments