Source

adama / bin / adama

Full commit
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Adama main command to create commands and orders for your applications
"""

import sys
import os
from optparse import make_option

from adama import sir_yes_sir, get_version

name = os.path.split(__file__)[1]

global_options = (
    make_option('--pythonpath', action='store', type='string', dest='pythonpath',
        metavar='PYTHONPATH',
        help='A directory to add to the Python path, e.g. "/path/to/myproject"'),
    make_option('-n', '--name', action='store', type='string', dest='name',
        metavar='NAME', help='name of the command [Default: module\'s name]'),
)

if __name__ == '__main__':
    sys.exit(sir_yes_sir(doc=__doc__, options=global_options, version=get_version(name)))