net: shell: ping: correct argument count for net ping command

Since `<host>` is a mandatory argument, the (_mand, _opt) values
should be adjusted to 2 and 12, respectively.
Note that `_mand` includes the number of mandatory arguments,
including the command name (`ping` itself).

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-10-19 16:36:17 +07:00 committed by Anas Nashif
parent 271aeaf5f9
commit edaf94ec37

View file

@ -497,4 +497,4 @@ SHELL_STATIC_SUBCMD_SET_CREATE(net_cmd_ping,
SHELL_SUBCMD_ADD((net), ping, &net_cmd_ping,
"Ping a network host.",
cmd_net_ping, 1, 13);
cmd_net_ping, 2, 12);