diff --git a/lib/posix/getopt/Kconfig b/lib/posix/getopt/Kconfig index fc0055cf692..72c9961fb90 100644 --- a/lib/posix/getopt/Kconfig +++ b/lib/posix/getopt/Kconfig @@ -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