def _maybe_shift_opspec(args):
    """Moves opspec to flags if it looks like a flag assignment.
    """
    if args.opspec and '=' in args.opspec:
        args.flags = (args.opspec,) + args.flags
        args.opspec = None
