django-argparse-command

  206 downloads
0.1.0 BSD License    
  not rated
Django Commands using ArgumentParser

description

download

specifications

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:

django-argparse-command is a Django app for 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
READ MORE   
Last updated on January 3rd, 2012

0 User reviews so far.

SUBMIT