Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Warns the user for firing in multiple arguments for <folder_name> as part of init command
  • Loading branch information
jamesgeorge007 committed Mar 7, 2019
1 parent 524e541 commit faeea25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/quasar-init
Original file line number Diff line number Diff line change
Expand Up @@ -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 <folder_name>`)
warn()
process.exit(0)
}

const
cliDir = resolve(__dirname, '..')

Expand Down

0 comments on commit faeea25

Please sign in to comment.