Permalink
Browse files

Don't pass url field

  • Loading branch information...
Kikobeats committed Jul 10, 2018
1 parent 96e58f3 commit 60acf6637d26b8e363c92c4733012d1b05a6a1cb
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/cli/index.js
@@ -4,7 +4,7 @@
const cosmiconfig = require('cosmiconfig')('urlint')
const { first, concat, isEmpty } = require('lodash')
const { omit, first, concat, isEmpty } = require('lodash')
const urlint = require('@urlint/core')
const { ci } = require('ci-env')
@@ -79,7 +79,11 @@ const cli = require('meow')(require('./help'), {
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 opts = {
...flags,

0 comments on commit 60acf66

Please sign in to comment.