def _get_activation_code_from_args():
    parser = ArgumentParser(add_help=False)
    parser.add_argument('--activation-code')
    try:
        (args, _) = parser.parse_known_args()
    except (argparse.ArgumentError, TypeError):
        return None
    return args.activation_code
def _get_activation_code_from_args():
    parser = ArgumentParser(add_help=False)
    parser.add_argument('--activation-code')
    try:
        (args, _) = parser.parse_known_args()
    except (argparse.ArgumentError, TypeError):
        return None
    return args.activation_code