We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e45eb89 commit 42bd89aCopy full SHA for 42bd89a
index.ts
@@ -240,14 +240,14 @@ async function spawn(args) {
240
// Save file
241
if (args["filetype"] !== "json") {
242
let saveFile = filename;
243
- if (args["filetype"] === "both") {
+ if (args["filetype"] === "both" || args["filename"] === "[id]") {
244
saveFile += ".csv";
245
}
246
toCSV(posts, saveFile);
247
248
if (args["filetype"] !== "csv") {
249
250
251
saveFile += ".json";
252
253
toJSON(posts, saveFile);
0 commit comments