:orphan: .. title:: CONFIG_GETOPT_LONG .. kconfig:: CONFIG_GETOPT_LONG CONFIG_GETOPT_LONG ################## *Getopt long library support* Type: ``bool`` Help ==== .. code-block:: none This option adds support of the getopt long. Different shell backends are using 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. Direct dependencies =================== \ :kconfig:`GETOPT ` *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Kconfig definition ================== At ``/posix/getopt/Kconfig:17`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:43`` → ``/Kconfig:12`` → ``/posix/Kconfig:4`` Menu path: (Top) → Additional libraries → Geopt library support .. code-block:: kconfig config GETOPT_LONG bool "Getopt long library support" depends on GETOPT help This option adds support of the getopt long. Different shell backends are using 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. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*