in reply to Re: test for unknown option in getoptsin thread test for unknown option in getopts
The OP should note that that will result in an error line printed to stderr with text of the form: "Unknown option: b".