We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42f8912 commit 0fae796Copy full SHA for 0fae796
2 files changed
index.js
@@ -112,7 +112,7 @@ Promise.resolve()
112
error('You must pass a valid list of files to parse')
113
}
114
115
- if (i.length > 1 && output) {
+ if (i.length > 1 && !argv.dir && !argv.replace) {
116
error('Must use --dir or --replace with multiple input files')
117
118
test/error.js
@@ -16,6 +16,14 @@ test('multiple input files && --output', (t) => {
16
})
17
18
19
+test('multiple input files && writing to stdout', (t) => {
20
+ return cli(['test/fixtures/*.css'])
21
+ .then(({ err, code }) => {
22
+ t.is(code, 1, 'expected non-zero error code')
23
+ t.regex(err, /Must use --dir or --replace/)
24
+ })
25
+})
26
+
27
test('invalid --config', (t) => {
28
return cli(
29
[
0 commit comments