parse args and fix null linenumber exception (not initialized)