MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / getopt

Method getopt

samples/getopt-test.cpp:51–56  ·  view source on GitHub ↗

! @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. */

Source from the content-addressed store, hash-verified

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 {

Callers 1

mainFunction · 0.45

Calls 1

getoptFunction · 0.85

Tested by

no test coverage detected