# getopts > friendly [`getopts`](http://en.wikipedia.org/wiki/Getopts) for [fish](https://fishshell.com) :fish: ## Usage ```fish Add `getopts` to your `$fish_plugins` or import directly into your library via `import plugins/getopts`. ``` ## Premise Every utility / function needs to handle arguments. What usually happens is that every function does all the grunt work to parse `$argv` itself, and while some patterns do tend to recur, it's different almost every time. Enter fish `getopts`. ## Synopsis `getopts