def METHOD_NAME(subparsers):
    """ Create the parser for the "list" command. """
    list_parser = subparsers.add_parser('list',
                                        help='List channels, SCC organization credentials or products')
    list_parser.add_argument(
        'list_target',
        choices=['channel', 'channels', 'credentials', 'product', 'products'])
    list_parser.add_argument(
        '-e', '--expand',
        action='store_true',
        default=False,
        dest="expand",
        help='show also children, if the parent is not installed yet')
    list_parser.add_argument(
        '-f', '--filter',
        action='store',
        dest="filter",
        help="show only labels, which contains the filter word "
             "(case-insensitive)")
    list_parser.add_argument(
        '--no-optional',
        action='store_true',
        dest='no_optionals',
        default=False,
        help='do not list optional channels')
    list_parser.add_argument(
        '-c', '--compact',
        action='store_true',
        default=False,
        dest="compact",
        help='Compact output')