def dpf_flags_osr(parser, flags=None):
    """
    Add generic OS/radio/software flags to parser.

    :param parser: Parser to modify.
    :type parser: argparse.ArgumentParser

    :param flags: Tuple of sections to add.
    :type flags: tuple(str)
    """
    if 'osr' in flags:
        parser.add_argument('os', help='OS version')
        parser.add_argument('radio', help='Radio version, 10.x.y.zzzz',
            nargs='?', default=None)
        parser.add_argument('swrelease', help=
            'Software version, 10.x.y.zzzz', nargs='?', default=None)
    return parser
