add proper command line parsing support

Signed-off-by: Alexander Graf <agraf@suse.de>