Fix filter detection code in CLI parsing code.