public WatchOperationOptions parseOptions(String[] operationArgs) throws Exception {
WatchOperationOptions operationOptions = new WatchOperationOptions();
OptionParser parser = new OptionParser();
OptionSpec<Integer> optionInterval = parser.acceptsAll(asList("i", "interval")).withRequiredArg().ofType(Integer.class);
OptionSpec<Void> optionNoAnnouncements = parser.acceptsAll(asList("N", "no-announcements"));
OptionSpec<String> optionAnnouncements = parser.acceptsAll(asList("a", "announce")).withRequiredArg();
OptionSpec<Void> optionNoWatcher = parser.acceptsAll(asList("W", "no-watcher"));
OptionSpec<Integer> optionSettleDelay = parser.acceptsAll(asList("s", "delay")).withRequiredArg().ofType(Integer.class);
OptionSet options = parser.parse(operationArgs);