def METHOD_NAME(self, parser, upcall=True):
    if upcall:
        try:
            upfunc = super().METHOD_NAME
        except AttributeError:
            pass
        else:
            upfunc(parser)
    group = parser.add_argument_group('binning options')
    egroup = group.add_mutually_exclusive_group()
    egroup.add_argument(
        '--binexpr',
        '--binbounds',
        dest='binexpr',
        help='''Construct rectilinear bins from BINEXPR. This must be a list of lists of bin boundaries
                        (one list of bin boundaries for each dimension of the progress coordinate), formatted as a Python
                        expression. E.g. "[[0,1,2,4,inf], [-inf,0,inf]]".''',
    )
    group.add_argument(
        '--discard-bin-assignments',
        dest='discard_bin_assignments',
        action='store_true',
        help='''Discard any existing bin assignments stored in the analysis HDF5 file.''',
    )