! @brief Call Getopt::getopt() with optstring, to initiate command line argument parsing, perform consistency checks after all command line arguments are parsed. @param argc Argument count as passed to main() on program invocation. @param argv Argument array as passed to main() on program invocation. @return 0 if successful, >0 in case of errors. */
| 49 | @return 0 if successful, >0 in case of errors. |
| 50 | */ |
| 51 | int getopt(int argc, char** const argv) { |
| 52 | int rc = Util::Getopt::getopt(argc, argv, ::optstring); |
| 53 | std::cout << "Params::getopt()" |
| 54 | << " rc = " << rc << std::endl; |
| 55 | return rc; |
| 56 | } |
| 57 | |
| 58 | //! Handle options and their arguments. |
| 59 | int option(int opt, const std::string& optarg, int optopt) override { |