/bash-named-args-to-env

Example of a bash script to convert named arguments into environment variables.

Primary LanguageShellThe UnlicenseUnlicense

Example of a bash script to convert named arguments into environment variables.

./main.sh \
  --LOCAL_VAR "this variable is used by the main script" \
  --DOWNSTREAM_VAR "this variable is used by another command"