@@ -232,7 +232,11 @@ fn steel_flag_parity() {
232232 if let Some ( ab_long) = ab_flag. strip_prefix ( "--" ) {
233233 if ab_long != * steel_long {
234234 // Different long name → must be an alias
235- let has_alias = arg. get_all_aliases ( ) . into_iter ( ) . flatten ( ) . any ( |a| a == ab_long) ;
235+ let has_alias = arg
236+ . get_all_aliases ( )
237+ . into_iter ( )
238+ . flatten ( )
239+ . any ( |a| a == ab_long) ;
236240 if !has_alias {
237241 failures. push ( format ! (
238242 "[{}] Steel --{} needs alias `--{}` for agent-browser compat" ,
@@ -325,12 +329,13 @@ fn extract_command_flags(content: &str) -> BTreeMap<String, BTreeSet<String>> {
325329
326330 // At match body level, look for arm patterns
327331 if depth_at_start == 0
328- && let Some ( cmds) = parse_arm_commands ( trimmed) {
329- current_cmds = cmds ;
330- for cmd in & current_cmds {
331- result . entry ( cmd . clone ( ) ) . or_insert_with ( BTreeSet :: new ) ;
332- }
332+ && let Some ( cmds) = parse_arm_commands ( trimmed)
333+ {
334+ current_cmds = cmds ;
335+ for cmd in & current_cmds {
336+ result . entry ( cmd . clone ( ) ) . or_insert_with ( BTreeSet :: new ) ;
333337 }
338+ }
334339
335340 // Extract flag literals from this line and attribute to current commands
336341 if !current_cmds. is_empty ( ) {
@@ -442,14 +447,15 @@ fn find_commands_rs() -> Option<PathBuf> {
442447 . file_name ( )
443448 . to_string_lossy ( )
444449 . starts_with ( "agent-browser-" )
445- && let Ok ( refs) = std:: fs:: read_dir ( entry. path ( ) ) {
446- for ref_entry in refs . flatten ( ) {
447- let p = ref_entry . path ( ) . join ( "cli/src/commands.rs" ) ;
448- if p . exists ( ) {
449- return Some ( p ) ;
450- }
450+ && let Ok ( refs) = std:: fs:: read_dir ( entry. path ( ) )
451+ {
452+ for ref_entry in refs . flatten ( ) {
453+ let p = ref_entry . path ( ) . join ( "cli/src/commands.rs" ) ;
454+ if p . exists ( ) {
455+ return Some ( p ) ;
451456 }
452457 }
458+ }
453459 }
454460 }
455461
0 commit comments