We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89d7dd5 commit 83270ebCopy full SHA for 83270eb
src/build.ts
@@ -29,7 +29,7 @@ async function build(args: string[]) {
29
30
try {
31
// dir - default .
32
- const dir = args[0].match(/^-/) ? "." : args[0];
+ const dir = !args.length || args[0].match(/^-/) ? "." : args[0];
33
// -m --markdown - default TUTORIAL.md
34
const markdown =
35
getArg(args, { name: "markdown", alias: "m" }) || "TUTORIAL.md";
0 commit comments