mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 13:59:54 +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:
@@ -520,7 +520,7 @@ otError otPlatDiagProcess(otInstance *aInstance, int argc, char *argv[], char *a
|
||||
OT_UNUSED_VARIABLE(aOutput);
|
||||
OT_UNUSED_VARIABLE(aOutputMaxLen);
|
||||
|
||||
return OT_ERROR_INVALID_ARGS;
|
||||
return OT_ERROR_INVALID_COMMAND;
|
||||
}
|
||||
|
||||
void otPlatDiagModeSet(bool aMode)
|
||||
|
||||
Reference in New Issue
Block a user