Always use "$@" (including the quotes) instead of $* when passing on command-line arguments.
If your directory name contains a space, the above function won’t work. Note that putting $* in quotes would be interpreted as one argument, so that wouldn’t work if you specified an option along with a directory name.