File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11extern crate clap;
22
3- use clap:: App ;
3+ use clap:: Command ;
44
55use help_messages:: CONFIG_HELP ;
66use help_messages:: DEFAULT_HELP ;
@@ -13,16 +13,16 @@ use help_messages::UNINSTALL_HELP;
1313use help_messages:: USE_HELP ;
1414
1515fn main ( ) {
16- let args = App :: new ( "help" )
16+ let args = Command :: new ( "help" )
1717 . override_help ( MAIN_HELP )
18- . subcommand ( App :: new ( "config" ) )
19- . subcommand ( App :: new ( "default" ) . alias ( "d" ) )
20- . subcommand ( App :: new ( "env" ) . alias ( "e" ) )
21- . subcommand ( App :: new ( "home" ) . alias ( "h" ) )
22- . subcommand ( App :: new ( "install" ) . alias ( "i" ) )
23- . subcommand ( App :: new ( "list" ) . alias ( "ls" ) )
24- . subcommand ( App :: new ( "uninstall" ) . alias ( "rm" ) )
25- . subcommand ( App :: new ( "use" ) . alias ( "u" ) )
18+ . subcommand ( Command :: new ( "config" ) )
19+ . subcommand ( Command :: new ( "default" ) . alias ( "d" ) )
20+ . subcommand ( Command :: new ( "env" ) . alias ( "e" ) )
21+ . subcommand ( Command :: new ( "home" ) . alias ( "h" ) )
22+ . subcommand ( Command :: new ( "install" ) . alias ( "i" ) )
23+ . subcommand ( Command :: new ( "list" ) . alias ( "ls" ) )
24+ . subcommand ( Command :: new ( "uninstall" ) . alias ( "rm" ) )
25+ . subcommand ( Command :: new ( "use" ) . alias ( "u" ) )
2626 . get_matches ( ) ;
2727
2828 let help = match args. subcommand_name ( ) {
You can’t perform that action at this time.
0 commit comments