def METHOD_NAME(args, comm):
    """Parse command-line arguments.
    Parameters
    ----------
    args : list of strings
        command-line arguments.
    Returns
    -------
    options : :class:`argparse.ArgumentParser`
        Command line arguments.
    """
    if comm.rank == 0:
        parser = argparse.ArgumentParser(description = __doc__)
        parser.add_argument('-i', '--input', dest='chk_file', type=str,
                            default=None, help='Input pyscf .chk file.')
        parser.add_argument('-o', '--output', dest='hamil_file',
                            type=str, default='hamiltonian.h5',
                            help='Output file name for QMCPACK hamiltonian.')
        parser.add_argument('-w', '--wavefunction', dest='wfn_file',
                            type=str, default=None,
                            help='Output file name for QMCPACK wavefunction. '
                                 'By default will write to hamil_file.')
        parser.add_argument('-q', '--qmcpack-input', dest='qmc_input',
                            type=str, default=None,
                            help='Generate skeleton QMCPACK input xml file.')
        parser.add_argument('-t', '--cholesky-threshold', dest='thresh',
                            type=float, default=1e-5,
                            help='Cholesky convergence threshold.')
        parser.add_argument('-k', '--kpoint', dest='kpoint_sym',
                            action='store_true', default=False,
                            help='Generate explicit kpoint dependent integrals.')
        parser.add_argument('--density-fit', dest='df',
                            action='store_true', default=False,
                            help='Use density fitting integrals stored in '
                            'input pyscf chkpoint file.')
        parser.add_argument('-a', '--ao', '--ortho-ao', dest='ortho_ao',
                            action='store_true', default=False,
                            help='Transform to ortho AO basis. Default assumes '
                            'we work in MO basis')
        parser.add_argument('-c', '--cas',
                            help='Specify a CAS in the form of N,M.',
                            type=lambda s: [int(item) for item in s.split(',')],
                            default=None)
        parser.add_argument('-d', '--disable-ham', dest='disable_ham',
                            action='store_true', default=False,
                            help='Disable hamiltonian generation.')
        parser.add_argument('-n', '--num-dets', dest='ndet_max',
                            type=int, default=1,
                            help='Set upper limit on number of determinants to '
                            'generate.')
        parser.add_argument('-r', '--real-ham', dest='real_chol',
                            action='store_true', default=False,
                            help='Write integrals as real numbers.')
        parser.add_argument('-p', '--phdf', dest='phdf',
                            action='store_true', default=False,
                            help='Use parallel hdf5.')
        parser.add_argument('--low', dest='low_thresh',
                            type=float, default=0.1,
                            help='Lower threshold for non-integer occupancies'
                            'to include in multi-determinant exansion.')
        parser.add_argument('--high', dest='high_thresh',
                            type=float, default=0.95,
                            help='Upper threshold for non-integer occupancies'
                            'to include in multi-determinant exansion.')
        parser.add_argument('--dense', dest='dense',
                            action='store_true', default=False,
                            help='Write dense Hamiltonian.')
        parser.add_argument('-v', '--verbose', action='count', default=0,
                            help='Verbose output.')
        options = parser.METHOD_NAME(args)
    else:
        options = None
    options = comm.bcast(options, root=0)
    if not options.chk_file:
        if comm.rank == 0:
            parser.print_help()
        sys.exit()
    return options