]> git.ipfire.org Git - thirdparty/util-linux.git/commit
getopt: add feature to ignore unknown options
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Wed, 27 Aug 2025 08:30:49 +0000 (04:30 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Wed, 27 Aug 2025 08:51:58 +0000 (04:51 -0400)
commit1c6e01da7950494d265a05c705685e7c7f7cbdb5
tree3b75b92d0fb5aeee9c7367587c71f33570dd3d97
parentc42f264120d9c12bdf4df0b31481b49b33540f68
getopt: add feature to ignore unknown options

This feature addition will add the '-U' and '--unknown' options
It'll allow getopt to ignore unknown options and leave them untouched.
Additionally, it will surpress any error messages generated by getopt(3).

Addresses: #701
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Documentation/TODO
misc-utils/getopt.1.adoc
misc-utils/getopt.c