def preprocess(argv):
    return [(sentinel if arg == '--' else arg) for arg in argv[1:]]

def postprocess(arg):
    return '--' if arg == sentinel else arg
parser = ArgumentParser()
parser.add_argument('--myarg', help='my arg description', type=postprocess)
args = parser.parse_args(preprocess(sys.argv))
Python argparse with -- as the value