Reading a command line arg wrong

deleteall option misses the file extension command line argument.