Skip to content

Commit

Permalink
fix: Command line arguments are invalid when the configuration file d…
Browse files Browse the repository at this point in the history
…oes not exist

fix #28
  • Loading branch information
HcySunYang committed Jan 12, 2019
1 parent 31547f8 commit 34678a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function getConfig(flags) {
markdownDir: 'components'
}
if (path) Object.assign(config, data, flags)
Object.assign(config, flags || {})
return config
}

Expand Down

0 comments on commit 34678a6

Please sign in to comment.