Properly strip leading '-' characters in options and replace others by
'_' as in argparse. Detect positional arguments.