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

Method evalModify

app/exiv2.cpp:825–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823} // Params::evalInsert
824
825int Params::evalModify(int opt, const std::string& optArg) {
826 switch (action_) {
827 case Action::none:
828 action_ = Action::modify;
829 [[fallthrough]];
830 case Action::modify:
831 case Action::extract:
832 case Action::insert:
833 if (opt == 'c')
834 jpegComment_ = parseEscapes(optArg);
835 if (opt == 'm')
836 cmdFiles_.push_back(optArg); // parse the files later
837 if (opt == 'M')
838 cmdLines_.push_back(optArg); // parse the commands later
839 return 0;
840 default:
841 std::cerr << progname() << ": " << _("Option") << " -" << static_cast<char>(opt) << " "
842 << _("is not compatible with a previous option\n");
843 return 1;
844 }
845} // Params::evalModify
846
847int Params::nonoption(const std::string& argv) {
848 int rc = 0;

Callers

nothing calls this directly

Calls 1

parseEscapesFunction · 0.85

Tested by

no test coverage detected