From faeea2598934e66a1595390b90501a09cac88681 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Thu, 7 Mar 2019 23:27:06 +0530 Subject: [PATCH] Towards #228 Warns the user for firing in multiple arguments for as part of init command --- bin/quasar-init | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/quasar-init b/bin/quasar-init index 0c58a5b..e09d1b8 100755 --- a/bin/quasar-init +++ b/bin/quasar-init @@ -57,6 +57,12 @@ if (!argv._[0]) { process.exit(0) } +if (parseArgs(process.argv.slice(2))._.length > 1) { + warn(`Kindly provide only one argument for the `) + warn() + process.exit(0) +} + const cliDir = resolve(__dirname, '..')