| 560 | } // Params::evalRename |
| 561 | |
| 562 | int Params::evalAdjust(const std::string& optArg) { |
| 563 | int rc = 0; |
| 564 | switch (action_) { |
| 565 | case Action::none: |
| 566 | case Action::adjust: |
| 567 | if (adjust_) { |
| 568 | std::cerr << progname() << ": " << _("Ignoring surplus option -a") << " " << optArg << "\n"; |
| 569 | break; |
| 570 | } |
| 571 | action_ = Action::adjust; |
| 572 | adjust_ = parseTime(optArg, adjustment_); |
| 573 | if (!adjust_) { |
| 574 | std::cerr << progname() << ": " << _("Error parsing -a option argument") << " `" << optArg << "'\n"; |
| 575 | rc = 1; |
| 576 | } |
| 577 | break; |
| 578 | default: |
| 579 | std::cerr << progname() << ": " << _("Option -a is not compatible with a previous option\n"); |
| 580 | rc = 1; |
| 581 | break; |
| 582 | } |
| 583 | return rc; |
| 584 | } // Params::evalAdjust |
| 585 | |
| 586 | int Params::evalYodAdjust(const Yod& yod, const std::string& optArg) { |
| 587 | int rc = 0; |
nothing calls this directly
no test coverage detected