zsh includes a powerful utility for parsing command-line options
zparseopts, but for quick shell scripts and shell functions, but is there an easy way to extract the array of all command-line arguments that do not begin with a hyphen?
Filter the positional parameters
However this is not a good way of parsing command line arguments; for example, given
you will get
The simpler form of argument parsing, with single-letter options, is