INNER CODE UNIT · Python

_get_arg_parser

lschoe/mpyc · mpyc/__init__.py:44

def _get_arg_parser():
    """Return parser for command line arguments passed to the MPyC runtime."""
    parser = argparse.ArgumentParser(add_help=False)

    group = parser.add_argument_group('MPyC help')
    group.add_argument('-V', '--VERSION', action='store_true',
                       help='print MPyC version number and exit')
    group.add_argument('-H', '--HELP', action='store_true',
                       help='print this help message for MPyC and exit')
    group.add_argument('-h', '--help', action='store_true',
                       help='print help message for this MPyC program (if any)')

    group = parser.add_argument_group('MPyC configuration')
    group.add_argument('-C', '--config', metavar='ini',
                       help='use ini file, defining all m parties')
    group.add_argument('-P', type=str, dest='parties', metavar='addr', action='append',
                       help='use addr=host:port per party (repeat m times)')
    group.add_argument('-M', type=int, metavar='m',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…