We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2310c commit c8ad8a7Copy full SHA for c8ad8a7
1 file changed
index.js
@@ -37,9 +37,7 @@ class CommandLineArgs {
37
} else {
38
throw new Error('Extractor not found: ' + def.extractor)
39
}
40
- if (extraction.length) {
41
- result[def.name] = await def.output(extraction)
42
- }
+ result[def.name] = await def.output(extraction)
43
44
45
/* Do the positionals backwards, so removing them doesn't mess up the position config */
@@ -50,9 +48,7 @@ class CommandLineArgs {
50
48
for (const def of positionals) {
51
49
def.output ||= defaultOutput
52
const extraction = positional(this.argv, def.position - 1, { remove: true })
53
54
55
56
57
58
0 commit comments