def make_ndx_captured(**kwargs):
kwargs['<STR_LIT>']=False   <EOL>user_input = kwargs.pop('<STR_LIT:input>',[])<EOL>user_input = [cmd for cmd in user_input if cmd != '<STR_LIT:q>']  <EOL>kwargs['<STR_LIT:input>'] = user_input + ['<STR_LIT>', '<STR_LIT:q>']                <EOL>return gromacs.make_ndx(**kwargs)<EOL>
make_ndx that captures all output

    Standard :func:`~gromacs.make_ndx` command with the input and
    output pre-set in such a way that it can be conveniently used for
    :func:`parse_ndxlist`.

    Example::
      ndx_groups = parse_ndxlist(make_ndx_captured(n=ndx)[0])

    Note that the convenient :func:`get_ndx_groups` function does exactly
    that and can probably used in most cases.

    :Arguments:
        keywords are passed on to :func:`~gromacs.make_ndx`
    :Returns:
        (*returncode*, *output*, ``None``)