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

feature request: allow --appname to change appname before anything else #102

Open
kapouer opened this issue Nov 15, 2017 · 1 comment
Open

Comments

@kapouer
Copy link

kapouer commented Nov 15, 2017

This would be only allowed through cli arg, as it would not make sense in any config file.
However, changing the appname requires parsing cli args before calling rc,
at which point rc parses cli args...

@cspotcode
Copy link

rc performs default argv parsing like this:

require('minimist')(process.argv.slice(2))

So you can pretty easily do this manually yourself, then check for an appname property and pass it into rc.

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