shell: Add APIs to set number of arguments This allows the shell core to perform precheck before calling the handler which then can assume the number of arguments is correct. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>