posix: getopt: select getopt by default with CONFIG_POSIX_API

The `getopt()` function is part of POSIX and should be
available when applications choose to enable general POSIX
API support.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
This commit is contained in:
Chris Friedt 2022-10-28 13:49:37 -04:00 committed by Marti Bolivar
parent 8b0f7b3e36
commit bf5d47a5ce

View File

@ -4,6 +4,7 @@
menuconfig GETOPT
bool "Getopt library support"
default y if POSIX_API
help
This option adds support of getopt.
Different shell backends are use their own instance of getopt to