#!/home/uve/Proyectos/Lemon/testenv/bin/python
"""
This file is part of Lemon.

Lemon is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Lemon 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 Lemon. If not, see <http://www.gnu.org/licenses/>.


Copyright (c) 2012 Vicente Ruiz <vruiz2.0@gmail.com>
"""
import argparse
from lemon.core.commands import urls, runserver

# Main parser
parser = argparse.ArgumentParser(description='Lemon manage.')
subparsers = parser.add_subparsers(help='sub-command help')

# URLs parser
urls_parser = subparsers.add_parser('urls', help='url help')
urls_parser.set_defaults(func=urls)

# Run server
runserver_parser = subparsers.add_parser('runserver', help='runserver help')
runserver_parser.set_defaults(func=runserver)

# Parse arguments
args = parser.parse_args()
args.func(args)
