django-argparse-command 0.1.0
Django Commands using ArgumentParser
**Incomplete Readme**
Take a look at examples to get started for now. argcmd.make_option is just a function that returns a tuple of args/kwargs ie ((), {}, ) which will later be added to the parser as parser.add_argument(*args, **kwargs).
# Usage #
## Converting from Django Commands to ArgParse Commands ##
* Change **from django.core.management.base import BaseCommand** to **from argcmd.management.base import BaseCommand**
* Change **from optparse import make_option** to **from argcmd import make_option**
* Change option_list to arg_list
* Some options might need a little tweaking due to incompatibilities
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-argparse-command-0.1.0.tar.gz (md5) | Source | 2011-12-30 | 3KB | 189 | |
- Author: Allan Lei
- Home Page: https://github.com/allanlei/django-argparse-command
- Keywords: django argparse commands optparse
- License: LICENSE.txt
- Categories
- Package Index Owner: Allan.Lei
- DOAP record: django-argparse-command-0.1.0.xml
