def _alphabetize_actions(arg_parser):
    """Alphabetize arg parser actions for the sake of nicer help printouts."""
    for g in arg_parser._action_groups:
        g._group_actions.sort(key=lambda opt: opt.dest)
