Index: abp/filters/render_script.py |
=================================================================== |
--- a/abp/filters/render_script.py |
+++ b/abp/filters/render_script.py |
@@ -8,24 +8,28 @@ |
# Adblock Plus is distributed in the hope that it will be useful, |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# GNU General Public License for more details. |
# |
# You should have received a copy of the GNU General Public License |
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
+"""Command line script for rendering Adblock Plus filter lists.""" |
+ |
import argparse |
import io |
import logging |
import sys |
from .sources import FSSource, TopSource, WebSource, NotFound |
from .renderer import render_filterlist, IncludeError, MissingHeader |
+__all__ = ['main'] |
+ |
def parse_args(): |
parser = argparse.ArgumentParser(description='Render a filter list.') |
parser.add_argument( |
'infile', help='top level filter list fragment from which the ' |
'rendering starts') |
parser.add_argument('outfile', help='output filter list file') |
parser.add_argument( |