refactor: make path option value not optional

This commit is contained in:
Karl-Philipp Wulfert
2018-12-04 16:46:47 +01:00
parent d06c56aec4
commit a5c39aa4f3

View File

@@ -25,7 +25,7 @@ const currentWorkingDirectory = cwd();
// configure commander
commander
.version(JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json')).toString()).version)
.option('-p, --path [path]', `Path of project to add files to (${currentWorkingDirectory})`, currentWorkingDirectory)
.option('-p, --path <path>', `Path of project to add files to (${currentWorkingDirectory})`, currentWorkingDirectory)
.option('-r, --replace', 'Whether to replace existing files or not', false)
.parse(process.argv);