Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Show up warnings if more than one arguments are provided for init command #229

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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