Cleaner and more rubist way of parsing cmdline