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

add overload flag #200

Merged
merged 2 commits into from Feb 4, 2023
Merged

add overload flag #200

merged 2 commits into from Feb 4, 2023

Conversation

2tef
Copy link
Contributor

@2tef 2tef commented Jan 30, 2023

implements ruby's -o option (https://github.com/bkeepers/dotenv#why-is-it-not-overriding-existing-env-variables).
---
example

% cat a.env
VAR=a
% cat b.env
VAR=b
% godotenv -f a.env,b.env printenv VAR
a
% godotenv -o -f a.env,b.env printenv VAR
b

increases compatibility with the ruby command
@joho
Copy link
Owner

joho commented Feb 4, 2023

Thanks, looks handy

@joho joho merged commit 4321598 into joho:main Feb 4, 2023
@2tef 2tef deleted the overload-flag branch February 4, 2023 00:15
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.

None yet

2 participants