Is it time to rework the command line parsing to be bit cleaner? The current vtkPVOptions
implementation is quite dated.
cxxopts seems like a very elegant choice. It also has mechanism to group options into categories, thus making it easier to parse --help
output. Here’s an output from an another test program using cxxopts
> ./demo --help
Usage:
./demo [OPTION...]
-h, --help help
Mode options:
-s, --server run as server
--hybrid run as client and server
Client options:
-u, --url arg address for server to connect to (default:
ofi+tcp;ofi_rxm://192.168.0.23:37585)