parse the command line

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

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add commands for all variants

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