@@ -226,7 +226,7 @@ pub(crate) fn cli() -> Command<'static> {
226
226
. about ( "The Rust toolchain installer" )
227
227
. after_help ( RUSTUP_HELP )
228
228
. global_setting ( AppSettings :: DeriveDisplayOrder )
229
- . arg_required_else_help ( true )
229
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
230
230
. arg (
231
231
verbose_arg ( "Enable verbose output" ) ,
232
232
)
@@ -369,8 +369,7 @@ pub(crate) fn cli() -> Command<'static> {
369
369
Command :: new ( "toolchain" )
370
370
. about ( "Modify or query the installed toolchains" )
371
371
. after_help ( TOOLCHAIN_HELP )
372
- . subcommand_required ( true )
373
- . arg_required_else_help ( true )
372
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
374
373
. subcommand (
375
374
Command :: new ( "list" )
376
375
. about ( "List installed toolchains" )
@@ -475,8 +474,7 @@ pub(crate) fn cli() -> Command<'static> {
475
474
. subcommand (
476
475
Command :: new ( "target" )
477
476
. about ( "Modify a toolchain's supported targets" )
478
- . subcommand_required ( true )
479
- . arg_required_else_help ( true )
477
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
480
478
. subcommand (
481
479
Command :: new ( "list" )
482
480
. about ( "List installed and available targets" )
@@ -536,8 +534,7 @@ pub(crate) fn cli() -> Command<'static> {
536
534
. subcommand (
537
535
Command :: new ( "component" )
538
536
. about ( "Modify a toolchain's installed components" )
539
- . subcommand_required ( true )
540
- . arg_required_else_help ( true )
537
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
541
538
. subcommand (
542
539
Command :: new ( "list" )
543
540
. about ( "List installed and available components" )
@@ -593,8 +590,7 @@ pub(crate) fn cli() -> Command<'static> {
593
590
Command :: new ( "override" )
594
591
. about ( "Modify directory toolchain overrides" )
595
592
. after_help ( OVERRIDE_HELP )
596
- . subcommand_required ( true )
597
- . arg_required_else_help ( true )
593
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
598
594
. subcommand (
599
595
Command :: new ( "list" ) . about ( "List directory toolchain overrides" ) ,
600
596
)
@@ -722,8 +718,7 @@ pub(crate) fn cli() -> Command<'static> {
722
718
. subcommand (
723
719
Command :: new ( "self" )
724
720
. about ( "Modify the rustup installation" )
725
- . subcommand_required ( true )
726
- . arg_required_else_help ( true )
721
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
727
722
. subcommand ( Command :: new ( "update" ) . about ( "Download and install updates to rustup" ) )
728
723
. subcommand (
729
724
Command :: new ( "uninstall" )
@@ -737,8 +732,7 @@ pub(crate) fn cli() -> Command<'static> {
737
732
. subcommand (
738
733
Command :: new ( "set" )
739
734
. about ( "Alter rustup settings" )
740
- . subcommand_required ( true )
741
- . arg_required_else_help ( true )
735
+ . setting ( AppSettings :: SubcommandRequiredElseHelp )
742
736
. subcommand (
743
737
Command :: new ( "default-host" )
744
738
. about ( "The triple used to identify toolchains when not specified" )
0 commit comments