Skip to content

Commit 3fdbc54

Browse files
frozenbonitoclaygregory
authored andcommitted
Add type to CLI options
1 parent d3a5912 commit 3fdbc54

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,42 @@ class Prune {
1818
number: {
1919
usage: 'Number of previous versions to keep',
2020
shortcut: 'n',
21-
required: true
21+
required: true,
22+
type: 'string'
2223
},
2324
stage: {
2425
usage: 'Stage of the service',
2526
shortcut: 's',
27+
type: 'string'
2628
},
2729
region: {
2830
usage: 'Region of the service',
2931
shortcut: 'r',
32+
type: 'string'
3033
},
3134
function: {
3235
usage: 'Function name. Limits cleanup to the specified function',
3336
shortcut: 'f',
34-
required: false
37+
required: false,
38+
type: 'string'
3539
},
3640
layer: {
3741
usage: 'Layer name. Limits cleanup to the specified Lambda layer',
3842
shortcut: 'l',
39-
required: false
43+
required: false,
44+
type: 'string'
4045
},
4146
includeLayers: {
4247
usage: 'Boolean flag. Includes the pruning of Lambda layers.',
4348
shortcut: 'i',
44-
required: false
49+
required: false,
50+
type: 'boolean'
4551
},
4652
dryRun: {
4753
usage: 'Dry-run. Lists deletion candidates',
4854
shortcut: 'd',
49-
required: false
55+
required: false,
56+
type: 'boolean'
5057
}
5158
}
5259
},

0 commit comments

Comments
 (0)