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

Parse args refactoring #58

Closed
wants to merge 3 commits into from

Conversation

agutoli
Copy link

@agutoli agutoli commented Jan 27, 2019

Hi,

I did some improvements over ParseArgs, this can be useful to add new options in the future.

Cheers!

Bruno Agutoli

@agutoli
Copy link
Author

agutoli commented Jan 28, 2019

Wrong usage example:

./node_modules/env-cmd/bin/env-cmd ./.config/dev.env

Usage: env-cmd [options] [env_file | env_name] command [command options]

A simple utility for running a cli application using an env config file.

Also supports using a .env-cmdrc json file in the execution directory to support multiple
environment configs in one file.

Options:
  --no-override - do not override existing process env vars with file env vars
  --fallback - if provided env file does not exist, attempt to use fallback .env file in root dir

Error! Too few arguments passed to env-cmd.

Right way example:

node_modules/env-cmd/bin/env-cmd.js ./.config/dev.env serverless offline start

@toddbluhm
Copy link
Owner

This has been implemented in the new 9.0.0 release 🎉

@toddbluhm toddbluhm closed this May 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants