diff --git a/setup.cfg b/setup.cfg index 5a9932f..2730973 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,10 @@ classifier = packages = whereto +[entry_points] +console_scripts = + whereto = whereto.app:main + [build_sphinx] all-files = 1 warning-is-error = 1 diff --git a/whereto/app.py b/whereto/app.py new file mode 100644 index 0000000..90aaddf --- /dev/null +++ b/whereto/app.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +# Copyright 2010-2011 OpenStack Foundation +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +import argparse + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument( + 'htaccess_file', + help='file with rewrite rules', + ) + parser.add_argument( + 'test_file', + help='file with test data', + ) + args = parser.parse_args()