fixed bug that caused help from being printed with "--help", improved command-line args processing