Skip to content

Conversation

@OPhamster
Copy link

@OPhamster OPhamster commented Jun 23, 2024

Given w is simply a flag not a option in the sense that it requires an additional argument. getopts opts suffixed with a : require an additional arg.1

If a character is
followed by a <colon>, the option shall be expected to
have an argument, which should be supplied as a
separate argument.

Fixes #752

Given `w` is simply a flag not a option in the sense that it requires an
additional argument. `getopts` opts suffixed with a `:` require an additional arg.[1]

```quote
If a character is
followed by a <colon>, the option shall be expected to
have an argument, which should be supplied as a
separate argument.
```

[1]: https://man7.org/linux/man-pages/man1/getopts.1p.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: screenfetch -w reports "[[ ! ]] Error: You're missing an argument somewhere. Exiting."

1 participant