| 823 | } // Params::evalInsert |
| 824 | |
| 825 | int 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 | |
| 847 | int Params::nonoption(const std::string& argv) { |
| 848 | int rc = 0; |
nothing calls this directly
no test coverage detected