forked from X1011/git-directory-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move '--config-file' out of the args-parsing loop.
This should allow a config. file specified on the command-line to overwrite values set in '.env', which in turn ovewrite values set in the environment. Values set for these same vars in the args- parsing loop should then overwrite all of the above. Anything left unset by environment vars above are then covered when the "internal" vars are populated by the `var=${ENV_VAR:-default}` lines.
- Loading branch information
Matt Pearson
committed
Dec 12, 2015
1 parent
676d33f
commit 3994857
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is only going to work now if it's the 1st argument, which i'm ok with if we want to avoid more complexity, since i think this will be a niche feature, but if so, we should mention it in the documentation to avoid confusion.