@@ -457,11 +457,7 @@ pub(crate) fn cli() -> Command {
457
457
Command :: new ( "dump-testament" )
458
458
. about ( "Dump information about the build" )
459
459
. hide ( true ) , // Not for users, only CI
460
- ) ;
461
-
462
- app = RustupSubcmd :: augment_subcommands ( app) ;
463
-
464
- app = app
460
+ )
465
461
. subcommand ( Command :: new ( "check" ) . about ( "Check for updates to Rust toolchains and rustup" ) )
466
462
. subcommand (
467
463
Command :: new ( "default" )
@@ -762,20 +758,21 @@ pub(crate) fn cli() -> Command {
762
758
. default_value ( SelfUpdateMode :: default_mode ( ) ) ,
763
759
) ,
764
760
) ,
761
+ )
762
+ . subcommand (
763
+ Command :: new ( "completions" )
764
+ . about ( "Generate tab-completion scripts for your shell" )
765
+ . after_help ( COMPLETIONS_HELP )
766
+ . arg_required_else_help ( true )
767
+ . arg ( Arg :: new ( "shell" ) . value_parser ( EnumValueParser :: < Shell > :: new ( ) ) )
768
+ . arg (
769
+ Arg :: new ( "command" )
770
+ . value_parser ( EnumValueParser :: < CompletionCommand > :: new ( ) )
771
+ . default_missing_value ( "rustup" ) ,
772
+ ) ,
765
773
) ;
766
774
767
- app. subcommand (
768
- Command :: new ( "completions" )
769
- . about ( "Generate tab-completion scripts for your shell" )
770
- . after_help ( COMPLETIONS_HELP )
771
- . arg_required_else_help ( true )
772
- . arg ( Arg :: new ( "shell" ) . value_parser ( EnumValueParser :: < Shell > :: new ( ) ) )
773
- . arg (
774
- Arg :: new ( "command" )
775
- . value_parser ( EnumValueParser :: < CompletionCommand > :: new ( ) )
776
- . default_missing_value ( "rustup" ) ,
777
- ) ,
778
- )
775
+ RustupSubcmd :: augment_subcommands ( app)
779
776
}
780
777
781
778
fn verbose_arg ( help : & ' static str ) -> Arg {
0 commit comments