short_opts[] was missing colons to indicate required argument. Thanks to Fabio Pedretti for the bug report.