diff --git a/tools/thanos/thanos.cpp b/tools/thanos/thanos.cpp index b17231b568274eb75dddb2d40966322542bb0152..972cef7ed887afdb78af1183d82f20c8c6fed2ad 100644 --- a/tools/thanos/thanos.cpp +++ b/tools/thanos/thanos.cpp @@ -313,6 +313,8 @@ int ThanosPlugin_t::executeStep(TransformStep_t& the_step, const bool are_debugg flush(*real_cout); + /* reset optind for getops, in case plugin forgets to do it. */ + optind=1; const int parse_retval = the_step.parseArgs(step_args); if(parse_retval != 0) {