Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load a file akin to mocha.opts #42

Open
ORESoftware opened this issue Dec 14, 2017 · 1 comment
Open

Load a file akin to mocha.opts #42

ORESoftware opened this issue Dec 14, 2017 · 1 comment

Comments

@ORESoftware
Copy link
Contributor

ORESoftware commented Dec 14, 2017

Hey @trentm

so I was wondering if dashdash is capable of loading a file like mocha.opts

https://github.com/mochajs/mocha/blob/master/test/mocha.opts

I am not sure if Mocha uses commander or minimist, but mocha will load that file, and use those command flags as default

furthermore, it would be cool if dashdash could interpret .env files, and the like.

@karfau
Copy link

karfau commented Jan 31, 2020

A) mocha.opts file format has been deprecated by mocha
B) You can already use (something like) dotenv in the place where you are using dashdash and this way support anything that is using the existing env option
C) (not sure it's really relevant) mocha uses yargs

I don't think anything needs to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants