shared/shell: Fix not checking mandatory arguments

Even if mandatory argument takes is of variable size it should still be
checked if at least one argument has been provided.
1 file changed