A simple imperative-style command-line parser