shell: removed dead code in bt command

Removed automatic argument count checking in bt command. Now
it is possible to print a message that extra argument is not
recognized.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2019-03-25 11:05:59 +01:00 committed by Johan Hedberg
commit 4557b6b2d1

View file

@ -1427,4 +1427,4 @@ static int cmd_bt(const struct shell *shell, size_t argc, char **argv)
return -EINVAL;
}
SHELL_CMD_ARG_REGISTER(bt, &bt_cmds, "Bluetooth shell commands", cmd_bt, 1, 1);
SHELL_CMD_REGISTER(bt, &bt_cmds, "Bluetooth shell commands", cmd_bt);