I have following snippet to parse short and long options in /bin/dash.
/bin/dash
The option -n|--dry-run takes no argument. But --exclude
-n|--dry-run
--exclude