cmdArgsMode support added.
Minor bug fixed.