edf2csv 0.8.36 → 0.8.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +15 -1
- package/dist/cli.js.map +1 -1
- package/dist/edf/header.js +17 -3
- package/dist/edf/header.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -229,7 +229,21 @@ export async function main(argv) {
|
|
|
229
229
|
return EXIT_OK;
|
|
230
230
|
}
|
|
231
231
|
if (positionals.length === 0) {
|
|
232
|
-
|
|
232
|
+
/*
|
|
233
|
+
Shaped like the other refusals, and the last one that was not.
|
|
234
|
+
|
|
235
|
+
Every usage error this tool prints opens `error: <what>` with its advice indented under
|
|
236
|
+
it, because a refusal that does not match `^error:` is invisible to the grep that finds
|
|
237
|
+
all the others. This one printed its sentence flush left and then all 68 lines of
|
|
238
|
+
`--help` onto stderr — a page of options in a batch log, under a line no filter catches.
|
|
239
|
+
|
|
240
|
+
It is not a rare one either. `edf2csv $FILE` with `FILE` unset arrives here with no
|
|
241
|
+
positionals at all, which is the same accident as the `--out "$DEST"` the comment below
|
|
242
|
+
is about, one variable earlier.
|
|
243
|
+
*/
|
|
244
|
+
process.stderr.write('error: No input file given.\n' +
|
|
245
|
+
' Pass a recording, or a folder of them.\n\n' +
|
|
246
|
+
'Run edf2csv --help to see the options.\n');
|
|
233
247
|
return EXIT_USAGE;
|
|
234
248
|
}
|
|
235
249
|
/*
|