parse command line

Signed-off-by: Mattias Andrée <maandree@operamail.com>
call logging programs

Signed-off-by: Mattias Andrée <maandree@operamail.com>