public boolean hasToOffset() {
            return options.has(toOffsetOption);
        }
{@link StreamsResetter} resets the processing state of a Kafka Streams application so that, for example,
you can reprocess its input from scratch.
<p>
<strong>This class is not part of public API. For backward compatibility,
use the provided script in "bin/" instead of calling this class directly from your code.</strong>
<p>
Resetting the processing state of an application includes the following actions:
<ol>
<li>setting the application's consumer offsets for input and internal topics to zero</li>
<li>skip over all intermediate user topics (i.e., "seekToEnd" for consumers of intermediate topics)</li>
<li>deleting any topics created internally by Kafka Streams for this application</li>
</ol>
<p>
Do only use this tool if <strong>no</strong> application instance is running.
Otherwise, the application will get into an invalid state and crash or produce wrong results.
<p>
If you run multiple application instances, running this tool once is sufficient.
However, you need to call {@code KafkaStreams#cleanUp()} before re-starting any instance
(to clean local state store directory).
Otherwise, your application is in an invalid state.
<p>
User output topics will not be deleted or modified by this tool.
If downstream applications consume intermediate or output topics,
it is the user's responsibility to adjust those applications manually if required.
tools/src/main/java/org/apache/kafka/tools/StreamsResetter.java