Skip to content

Commit 97f25b2

Browse files
committed
feat(option.file): arrayize with a collector
1 parent 1531e86 commit 97f25b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const deepAssign = require('deep-assign');
88
const updateNotifier = require('update-notifier');
99

1010
const pkg = require('../package.json');
11-
const {preprocessArgs, fileExists, parseConfig} = require('./internals');
11+
const {preprocessArgs, fileExists, parseConfig, collect} = require('./internals');
1212

1313
const defaultConfig = parseConfig(require('./defaultConfig.json'));
1414

@@ -26,7 +26,7 @@ program
2626
.option('-e, --env <name>', 'Overrides the selected environment [default: development]')
2727
.option('-p, --path <path>', 'Path to you projects root folder, [default: CWD]')
2828
.option('-s, --service <name>', 'Overrides the targeted docker service')
29-
.option('-f, --file <filepath>', 'Overrides the targeted docker-compose file')
29+
.option('-f, --file [filepath ...]', 'Overrides the targeted docker-compose file(s)', collect, [])
3030
.option('-u, --user <user>', 'Run the command as this user')
3131
.option('-i, --index <index>', 'Index of the service is there are multiple [default: 1]')
3232
.option('-p, --privileged', 'Give extended privileges to the executed command process')

0 commit comments

Comments
 (0)