Skip to content

Commit edaf94e

Browse files
ndrs-pstnashif
authored andcommitted
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 <[email protected]>
1 parent 271aeaf commit edaf94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/shell/ping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,4 @@ SHELL_STATIC_SUBCMD_SET_CREATE(net_cmd_ping,
497497

498498
SHELL_SUBCMD_ADD((net), ping, &net_cmd_ping,
499499
"Ping a network host.",
500-
cmd_net_ping, 1, 13);
500+
cmd_net_ping, 2, 12);

0 commit comments

Comments
 (0)