@@ -16,7 +16,7 @@ interface RemoveArgs {
1616 identifier : string
1717 cwd : string
1818 'manifest-path' : string
19- 'no -rollback' : boolean
19+ 'skip -rollback' : boolean
2020}
2121
2222async function removePatch (
@@ -83,7 +83,7 @@ export const removeCommand: CommandModule<{}, RemoveArgs> = {
8383 type : 'string' ,
8484 default : DEFAULT_PATCH_MANIFEST_PATH ,
8585 } )
86- . option ( 'no -rollback' , {
86+ . option ( 'skip -rollback' , {
8787 describe : 'Skip rolling back files before removing (only update manifest)' ,
8888 type : 'boolean' ,
8989 default : false ,
@@ -97,7 +97,7 @@ export const removeCommand: CommandModule<{}, RemoveArgs> = {
9797 'Rollback and remove a patch by UUID' ,
9898 )
9999 . example (
100- '$0 remove pkg:npm/[email protected] --no -rollback' , 100+ '$0 remove pkg:npm/[email protected] --skip -rollback' , 101101 'Remove from manifest without rolling back files' ,
102102 )
103103 } ,
@@ -116,7 +116,7 @@ export const removeCommand: CommandModule<{}, RemoveArgs> = {
116116 }
117117
118118 // First, rollback the patch if not skipped
119- if ( ! argv [ 'no -rollback' ] ) {
119+ if ( ! argv [ 'skip -rollback' ] ) {
120120 console . log ( `Rolling back patch before removal...` )
121121 const { success : rollbackSuccess , results : rollbackResults } =
122122 await rollbackPatches (
@@ -129,7 +129,7 @@ export const removeCommand: CommandModule<{}, RemoveArgs> = {
129129
130130 if ( ! rollbackSuccess ) {
131131 console . error (
132- '\nRollback failed. Use --no -rollback to remove from manifest without restoring files.' ,
132+ '\nRollback failed. Use --skip -rollback to remove from manifest without restoring files.' ,
133133 )
134134 process . exit ( 1 )
135135 }
0 commit comments