stub in command line app

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-08-23 11:57:46 -04:00
parent 0bc9341b91
commit 533382041a
2 changed files with 35 additions and 0 deletions

View File

@ -22,6 +22,10 @@ classifier =
packages =
whereto
[entry_points]
console_scripts =
whereto = whereto.app:main
[build_sphinx]
all-files = 1
warning-is-error = 1

31
whereto/app.py Normal file
View File

@ -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()