Github user SolidWallOfCode commented on the pull request: https://github.com/apache/trafficserver/pull/571#issuecomment-219113313 I spent some time looking at this. I think the change is correct and I think it must be the plugin responsibility because we don't require plugins to use getopt. Here's the relevant language > The variable optind is the index of the next element to be processed in argv. The system initializes this value to 1. The caller can reset it to 1 to restart scanning of the same argv, or when scanning a new argument vector. I read this as indicating 1 is the correct value to use to reset `optind`.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---