Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

feat: accept cli args via json and package.json #811

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions src/packages/cli/src/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ function processOption(

export default function (version: string, isDocker: boolean) {
let args = yargs
.config()
.pkgConf("ganache")
// disable dot-notation because yargs just can't coerce args properly...
// ...on purpose! https://github.com/yargs/yargs/issues/1021#issuecomment-352324693
.parserConfiguration({ "dot-notation": false })
Expand Down