diff --git a/index.js b/index.js deleted file mode 100644 index b42fb04..0000000 --- a/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import Init from "./src/init.js"; - -/** - * Nodejs sync-stat Setup - */ -new Init(); \ No newline at end of file diff --git a/src/init.js b/src/init.js index f498ff1..cac24f2 100644 --- a/src/init.js +++ b/src/init.js @@ -14,8 +14,6 @@ export default class Init extends Log { const args_ = process.argv.slice(2); - - switch (args_[0]) { case "run": new ProcessLinkYml(); @@ -31,21 +29,26 @@ export default class Init extends Log { this.help() case "-h": this.help() - break; - default: + case null: this.output("Missing Command!"); this.help() + default: + this.output(`Unknown Command "${args_[0]}"`); + this.help() break; } } help(){ this.output( -`COMMANDS: [Option] .. +`Commands: [Option] ... + run - run sync compose help,-h , --help - display this help message convert - convert an existing docker-compose.yml + version - Display Version + `); }