Skip to content

Commit

Permalink
Don't pass url field
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 10, 2018
1 parent 96e58f3 commit 60acf66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/cli/index.js
Expand Up @@ -4,7 +4,7 @@


const cosmiconfig = require('cosmiconfig')('urlint') const cosmiconfig = require('cosmiconfig')('urlint')


const { first, concat, isEmpty } = require('lodash') const { omit, first, concat, isEmpty } = require('lodash')
const urlint = require('@urlint/core') const urlint = require('@urlint/core')
const { ci } = require('ci-env') const { ci } = require('ci-env')


Expand Down Expand Up @@ -79,7 +79,11 @@ const cli = require('meow')(require('./help'), {
await build.exit({ buildCode: 1, exitCode: 0 }) await build.exit({ buildCode: 1, exitCode: 0 })
} }


const flags = { ...config, ...cli.flags } const flags = {
...omit(config, ['url']),
...cli.flags
}

const url = await getUrl(input) const url = await getUrl(input)
const opts = { const opts = {
...flags, ...flags,
Expand Down

0 comments on commit 60acf66

Please sign in to comment.