557ad8e45c
Call `getopt_init()` to reset `state->optind` instead of directly setting `optind = 1`. The `getopt()` function uses `getopt_state` from `getopt_state_get` for state handling, so `getopt_init()` should be called to correctly run the command again. Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com> |
||
---|---|---|
.. | ||
backends | ||
modules | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.template.shell_log_queue_size | ||
Kconfig.template.shell_log_queue_timeout | ||
shell.c | ||
shell_cmds.c | ||
shell_fprintf.c | ||
shell_help.c | ||
shell_help.h | ||
shell_history.c | ||
shell_log_backend.c | ||
shell_ops.c | ||
shell_ops.h | ||
shell_utils.c | ||
shell_utils.h | ||
shell_vt100.h | ||
shell_wildcard.c | ||
shell_wildcard.h |