OpenCHAMI / bss

MIT License
1 stars 2 forks source link

Add environment variable for each flag #6

Closed synackd closed 5 months ago

synackd commented 5 months ago

Summary and Scope

Provide an environment variable for each flag to make configuration using Docker and docker-compose easier. Also, organize the parsing of these variables, as well as the program's flags, into their own separate functions for better readability for organization. Also, for each flag in the usage message, print its corresponding environment variable. For example:

  -insecure
        (BSS_INSECURE) Don't enforce https certificate security

in the above, setting BSS_INSECURE=true would be equivalent to passing the -insecure flag.

Issues and Related PRs

Testing

Tested on: