@@ -55,14 +55,22 @@ pub fn main(gctx: &mut GlobalContext) -> CliResult {
55
55
. map ( String :: as_str)
56
56
== Some ( "help" )
57
57
{
58
+ // Don't let config errors get in the way of parsing arguments
59
+ let _ = config_configure ( gctx, & expanded_args, None , global_args, None ) ;
58
60
print_zhelp ( gctx) ;
59
61
} else if expanded_args. flag ( "version" ) {
62
+ // Don't let config errors get in the way of parsing arguments
63
+ let _ = config_configure ( gctx, & expanded_args, None , global_args, None ) ;
60
64
let version = get_version_string ( is_verbose) ;
61
65
drop_print ! ( gctx, "{}" , version) ;
62
66
} else if let Some ( code) = expanded_args. get_one :: < String > ( "explain" ) {
67
+ // Don't let config errors get in the way of parsing arguments
68
+ let _ = config_configure ( gctx, & expanded_args, None , global_args, None ) ;
63
69
let mut procss = gctx. load_global_rustc ( None ) ?. process ( ) ;
64
70
procss. arg ( "--explain" ) . arg ( code) . exec ( ) ?;
65
71
} else if expanded_args. flag ( "list" ) {
72
+ // Don't let config errors get in the way of parsing arguments
73
+ let _ = config_configure ( gctx, & expanded_args, None , global_args, None ) ;
66
74
print_list ( gctx, is_verbose) ;
67
75
} else {
68
76
let ( cmd, subcommand_args) = match expanded_args. subcommand ( ) {
0 commit comments