Implementation of command line options parser

Signed-off-by: Krzysztof Opasiak <ups100@tlen.pl>