CONFIG_GETOPT_LONG

Getopt long library support

Type: bool

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.

Direct dependencies

GETOPT

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At <Library>/posix/getopt/Kconfig:17

Included via Kconfig:8Kconfig.zephyr:43<Library>/Kconfig:12<Library>/posix/Kconfig:4

Menu path: (Top) → Additional libraries → Geopt library support

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.)