Skip to content

Commit 95959d5

Browse files
committed
filenames for single posts are their ids
1 parent b961123 commit 95959d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ async function spawn(args) {
211211
} else if (args["_"][0] === "post") {
212212
api = Post;
213213
ids = args["ids"].split(",");
214-
args["id"] = ids.length === 0 ? ids[0] : "posts";
214+
args["id"] = ids.length === 1 ? ids[0] : "posts";
215215
}
216216

217217
// Define options

0 commit comments

Comments
 (0)