Skip to content
Commit 7e467651 authored by Jakub Rzeszutko's avatar Jakub Rzeszutko Committed by Anas Nashif
Browse files

shell: add getopt library support



This functionality is is enabled by setting CONFIG_SHELL_GETOPT.
It is not active by default.

User can call following functions inside command handlers:
 - shell_getopt - getopt function based on freebsd implementation
 - shell_getopt_status_get - returns getopt status

Beware when getopt functionality is enabled shell will not parse
command handler to look for "-h" or "--help" options and print
help message automatically.

Signed-off-by: default avatarJakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
parent 74ebf5db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment