fix: add missing -h/--help to init (#2096)

This commit is contained in:
Marvin Hagemeister
2023-11-29 16:57:39 +01:00
committed by GitHub
parent a0ede4fe67
commit fe792455ab
2 changed files with 50 additions and 1 deletions
+9 -1
View File
@@ -39,10 +39,18 @@ const USE_TAILWIND_MESSAGE =
const USE_VSCODE_MESSAGE = "Do you use VS Code?";
const flags = parse(Deno.args, {
boolean: ["force", "tailwind", "vscode", "docker"],
boolean: ["force", "tailwind", "vscode", "docker", "help"],
default: { "force": null, "tailwind": null, "vscode": null, "docker": null },
alias: {
help: "h",
},
});
if (flags.help) {
console.log(help);
Deno.exit(0);
}
console.log();
console.log(
colors.bgRgb8(