/* eslint no-console: off */
import build from "./scripts/build"
import start from "./scripts/start"
import bootstrap from "./scripts/bootstrap"

const ARGSPOS_SCRIPT = 2
const ARGSPOS_ARGUMENTS = 3

var script = process.argv[ARGSPOS_SCRIPT]
var args = process.argv.slice(ARGSPOS_ARGUMENTS)

switch (script)
{
  case "build":
    build(args)
    break

  case "start":
    start(args)
    break

  case "bootstrap":
    bootstrap(args)
    break

  case null:
  case undefined:
    console.log("No script name given!")
    break

  default:
    console.log(`Unknown script "${script}"!`)
    break
}

@@ -2,16 +2,24 @@
 * eslint
+-disable
  no-cons
@@ -25,16 +25,38 @@
 sole
-: off */
+ */%0Aimport chalk from %22chalk%22%0A
 %0Aimp
@@ -169,16 +169,61 @@
 strap%22%0A%0A
+import packageConfig from %22../package.json%22%0A%0A
 const AR
@@ -360,16 +360,778 @@
 MENTS)%0A%0A
+function header()%0A%7B%0A  console.log(%0A    chalk.cyan(%60%5Cn$%7BpackageConfig.name%7D $%7BpackageConfig.version%7D%60),%0A    chalk.gray(%60%5Cn$%7BpackageConfig.description%7D%60),%0A    %22%5Cn%22%0A  )%0A%7D%0Afunction help()%0A%7B%0A  console.log(%0A    %22%5CnSyntax: edge %3Ccommand%3E%22,%0A    %22%5Cn%5CnCommands:%22,%0A    %22%5Cn  start      Start development server%22,%0A    %22%5Cn  build      Create production build%22,%0A    %22%5Cn  bootstrap  Bootstraps a new edge stack project%22,%0A    %22%5Cn%5CnOptions for bootstrap:%22,%0A    %22%5Cn    %5B--title %3Ctitle%3E%5D               Title of new application%22,%0A    %22%5Cn    %5B--description %3Cdescription%3E%5D   Description of new application%22,%0A    %22%5Cn    %5B--language %3Cxx-YY%3E%5D            Language of application in format xx-YY%22,%0A    %22%5Cn    %5B--overwrite %3Cy/n%3E%5D             Overwrite existing source code%22%0A  )%0A%7D%0A%0Aheader()%0A%0A
 switch (
@@ -1324,16 +1324,26 @@
 ole.log(
+chalk.red(
 %22No scri
@@ -1358,16 +1358,28 @@
 given!%22)
+)%0A    help()
 %0A    bre
@@ -1409,16 +1409,26 @@
 ole.log(
+chalk.red(
 %60Unknown
@@ -1449,16 +1449,28 @@
 ipt%7D%22!%60)
+)%0A    help()
 %0A    bre

Add header and help text