cli: rework the cli parsing to use args4j

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>