File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,21 @@ init();
48
48
async function init ( ) {
49
49
if ( process . argv . length < 3 ) {
50
50
console . log (
51
- `Usage:
51
+ `
52
+ Usage:
52
53
node delete-team.js [options] <teamId> [teamId]
53
54
npm run delete-team -- [options] <teamId> [teamId]
54
55
55
56
Options:
56
- --dry-run (default) : Run the script without deleting anything
57
- --apply: Run the script to apply changes `
57
+ --apply : Run the script to apply changes
58
+ `
58
59
) ;
59
60
console . log (
60
- `Example:
61
+ `
62
+ Example:
61
63
node delete-team.js --apply 01850e43-d1e0-4b92-abe5-271b159ff99b
62
- npm run delete-team -- --apply 01850e43-d1e0-4b92-abe5-271b159ff99b`
64
+ npm run delete-team -- --apply 01850e43-d1e0-4b92-abe5-271b159ff99b
65
+ `
63
66
) ;
64
67
process . exit ( 1 ) ;
65
68
} else {
@@ -73,9 +76,6 @@ async function init() {
73
76
dryRun = false ;
74
77
i ++ ;
75
78
} else {
76
- i = process . argv . map ( ( a ) => a . toLowerCase ( ) ) . includes ( '--dry-run' )
77
- ? i + 1
78
- : i ;
79
79
console . log ( 'Running in dry-run mode' ) ;
80
80
dryRun = true ;
81
81
}
You can’t perform that action at this time.
0 commit comments