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

feat: accept cli args over env vars #810

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

davidmurdoch
Copy link
Member

You can now do $ GANACHE_wallet__totalAccounts=5 ganache instead of $ ganache --wallet.totalAccounts 5 -- a feature which was previously requested here.

I've found it is a nice feature to have when CLI tool is used in an npm package script, as I don't need to configure the script to accept the params (via command -- args).

Options are applied in the following order: ENV vars, config file, cli options. We don't yet support config-file parsing, but I'll add it in a future PR.

@davidmurdoch davidmurdoch requested a review from MicaiahReid May 3, 2022 18:39
@davidmurdoch davidmurdoch marked this pull request as draft July 12, 2022 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Stalled
Development

Successfully merging this pull request may close these issues.

1 participant