private static List<ArgGroupSpec> optionListGroups(CommandSpec commandSpec) {
        List<ArgGroupSpec> result = new ArrayList<ArgGroupSpec>();
        optionListGroups(commandSpec.argGroups(), result);
        return result;
    }
Returns the list of {@code ArgGroupSpec}s with a non-{@code null} heading.
docs/genadoc.java