To help with configuring services, we need a way to consume arguments
from the command line. This is an attempt to use the boost/program_options
component to achieve this. Since we already use boost, this doesn't add any
additional complexity to the build.
Details
Details
nix develop cd services/tunnelbroker rm -rf build && mkdir build && cd build && cmake .. && make -j bin/tunnelbroker --help # should see usage message
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- jonringer/tunnelbroker-args
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
Tunnelbroker already has ConfigManager abstraction from which we are handling options. It uses boost::program_options as well as in your solution. I think we should use the current approach instead of parsing CLI elsewhere. In this case, we have a single point of truth for options and a single place where it resides.
Comment Actions
https://linear.app/comm/issue/ENG-1799/dont-immediate-fail-if-tunnelbrokerini-is-missing is the spiritual successor to this