Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89d7dd5 + 83270eb commit 7a1ebe0Copy full SHA for 7a1ebe0
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