fixed detection of command without parameter