-
Notifications
You must be signed in to change notification settings - Fork 31
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: Load parameters from ENV #557
Comments
IIUC you mean parameters in the sense of command line flags, options and arguments, right? E.g. that OCRD_INPUT_FILE_GRP=MAX \
OCRD_OUTPUT_FILE_GRP=BIN \
OCRD_OVERWRITE=true \
ocrd-olena-binarize would be equivalent to ocrd-olena-binarize -I MAX -O OUT --overwrite Correct? |
Not sure what @JensHeinrich meant but I found myself often wanting to configure options for the processors, e.g. reduce this:
to
(Side note: I would certainly welcome
All proposed solutions and syntaxes here are just what I came up with in 5 minutes and should be discussed more. (Problems I see: How do I remove a env-specified parameter? Overriding seems easily done though, CLI parameter beats env parameter.) |
Yep, would also go for explicit (command line flag) (This is also how for example the ansible project treats this) @mikegerber Tbh I am mostly just doing the in-house support for our pilot, but having to specify the same options over and over again makes me want to help people Probably namespacing them like @mikegerber specified in the 1. solution is a good idea And a global namespace like in 3. Too |
Load the parameters from the ENV, if they are defined to provide an easier handling.
The text was updated successfully, but these errors were encountered: