Getopts
| getopts | |
|---|---|
| Developer(s) | Various open-source and commercial developers |
| Initial release | 1986 |
| Operating system | Unix, Unix-like, IBM i |
| Type | Command |
getopts is a built-in Unix shell command for parsing command-line arguments. It is designed to process command line arguments that follow the POSIX Utility Syntax Guidelines, based on the C interface of getopt.
The predecessor to getopts was the external program getopt by Unix System Laboratories.