:orphan: .. title:: CONFIG_GETOPT .. kconfig:: CONFIG_GETOPT CONFIG_GETOPT ############# *Geopt library support* Type: ``bool`` Help ==== .. code-block:: none This option adds support of getopt. Different shell backends are use their own instance of getopt to not interfere with each other. All not shell threads share one global instance of getopt state, hence apart from shell this library is not thread safe. User can add support for other threads by extending function getopt_state_get in getopt_common.c file. This option enables the following function: getopt. Defaults ======== No defaults. Implicitly defaults to ``n``. Symbols that select this symbol =============================== - \ :kconfig:`SHELL_GETOPT ` Kconfig definition ================== At ``/posix/getopt/Kconfig:5`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:43`` → ``/Kconfig:12`` → ``/posix/Kconfig:4`` Menu path: (Top) → Additional libraries .. code-block:: kconfig menuconfig GETOPT bool "Geopt library support" help This option adds support of getopt. Different shell backends are use their own instance of getopt to not interfere with each other. All not shell threads share one global instance of getopt state, hence apart from shell this library is not thread safe. User can add support for other threads by extending function getopt_state_get in getopt_common.c file. This option enables the following function: getopt. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*