problems with sub-commands without args
There is a problem with sub-commands which doesn't require an argument like module whatis
. In this case the module
function adds a a double dash as argument. This must be filtered out while parsing the arguments in modulecmd
.