Command line options parser simplification
Command line options parser simplification

In the hosted environment, first argument passed to the main function is a
program name itself, so there is no need to check it for an option string.
Also, this commit contains error reporting improvement - print error messages
into the standard error (stderr).

mgumz/alock,mgumz/alock