mirror of
https://github.com/espressif/openthread.git
synced 2026-09-18 07:00:08 +00:00
[cli] return OT_ERROR_INVALID_ARGS for invalid arguments (#4639)
- Remove argument parsing failure from semantic of OT_ERROR_PARSE. - Add OT_ERROR_INVALID_COMMAND to indicate invalid CLI command error. - return OT_ERROR_INVALID_ARGS for invalid CLI arguments.
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ exit:
|
||||
|
||||
otError UdpExample::Process(int argc, char *argv[])
|
||||
{
|
||||
otError error = OT_ERROR_PARSE;
|
||||
otError error = OT_ERROR_INVALID_COMMAND;
|
||||
|
||||
if (argc < 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user