@@ -31,12 +31,10 @@ pub struct UninstallCli {
3131 #[ arg( long) ]
3232 pub dry_run : bool ,
3333
34- /// Skip confirmation prompt
35- #[ arg( long, short = 'f' ) ]
36- pub force : bool ,
37-
38- /// Auto-confirm (alias for --force)
39- #[ arg( long, short = 'y' ) ]
34+ /// Skip confirmation prompt.
35+ ///
36+ /// Aliases: --force, -f (for compatibility)
37+ #[ arg( long = "yes" , short = 'y' , visible_aliases = [ "force" ] , short_alias = 'f' ) ]
4038 pub yes : bool ,
4139
4240 /// Create backup before uninstalling
@@ -182,7 +180,7 @@ impl UninstallCli {
182180 }
183181
184182 // Confirm before proceeding (Issue #3682: confirm BEFORE creating backup)
185- if !self . force && ! self . yes {
183+ if !self . yes {
186184 println ! ( "\n Are you sure you want to uninstall Cortex CLI? [y/N]" ) ;
187185 if !prompt_yes_no ( ) ? {
188186 println ! ( "Uninstall cancelled." ) ;
@@ -195,7 +193,7 @@ impl UninstallCli {
195193 print_info ( "Creating backup..." ) ;
196194 if let Err ( e) = create_backup ( & items_to_remove) {
197195 print_warning ( & format ! ( "Failed to create backup: {e}" ) ) ;
198- if !self . force && ! self . yes {
196+ if !self . yes {
199197 println ! ( "Continue without backup? [y/N]" ) ;
200198 if !prompt_yes_no ( ) ? {
201199 print_info ( "Uninstall cancelled." ) ;
0 commit comments