2021-07-01 17:00:15 +08:00
|
|
|
# Copyright (c) 2021 Nordic Semiconductor
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig GETOPT
|
2022-03-17 05:07:43 +08:00
|
|
|
bool "Getopt library support"
|
2022-10-29 01:49:37 +08:00
|
|
|
default y if POSIX_API
|
2021-07-01 17:00:15 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|