Skip to content

Commit

Permalink
Merge pull request #85 from meilisearch/remove_logs
Browse files Browse the repository at this point in the history
remove useless logs
  • Loading branch information
bidoubiwa authored Sep 6, 2023
2 parents 00c6a40 + e703bbb commit 34bcab7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ function getConfig({
configPath?: string
config?: string
}): Config {
console.log({ configPath, config })
if (configPath) {
return JSON.parse(
fs.readFileSync(configPath, { encoding: 'utf-8' })
) as Config
} else if (config) {
console.log('bkwejqwjkqeh')
return JSON.parse(config) as Config
}

Expand All @@ -48,9 +46,6 @@ function getConfig({
type: 'string',
})
.check((argv) => {
console.log(argv)
console.log(argv.config)
console.log(!!argv.config)
if (argv.config && argv.configPath) {
throw new Error(
'You can only use either --config or --configPath, not both.'
Expand Down

0 comments on commit 34bcab7

Please sign in to comment.