:orphan: .. title:: CONFIG_SHELL_GETOPT .. kconfig:: CONFIG_SHELL_GETOPT CONFIG_SHELL_GETOPT ################### *Enable threadsafe getopt support in shell* Type: ``bool`` Help ==== .. code-block:: none This config creates a separate getopt_state for the shell instance. It ensures that using getopt with shell is thread safe. When more threads are using getopt please call getopt_state_get to get getopt state of the shell thread. Direct dependencies =================== \ :kconfig:`SHELL ` *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Symbols selected by this symbol =============================== - \ :kconfig:`GETOPT ` Kconfig definition ================== At ``/shell/Kconfig:140`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:45`` Menu path: (Top) → Sub Systems and OS Services → Shell .. code-block:: kconfig config SHELL_GETOPT bool "Enable threadsafe getopt support in shell" select GETOPT depends on SHELL help This config creates a separate getopt_state for the shell instance. It ensures that using getopt with shell is thread safe. When more threads are using getopt please call getopt_state_get to get getopt state of the shell thread. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*