stub in command line app
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
0bc9341b91
commit
533382041a
@ -22,6 +22,10 @@ classifier =
|
|||||||
packages =
|
packages =
|
||||||
whereto
|
whereto
|
||||||
|
|
||||||
|
[entry_points]
|
||||||
|
console_scripts =
|
||||||
|
whereto = whereto.app:main
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
all-files = 1
|
all-files = 1
|
||||||
warning-is-error = 1
|
warning-is-error = 1
|
||||||
|
31
whereto/app.py
Normal file
31
whereto/app.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user