The snarkos-node-env crate provides the EnvInfo struct, which is responsible for parsing the node's environment.
snarkos-node-env
EnvInfo