django-argparse-command 0.1.0

Django Commands using ArgumentParser

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Allan Lei
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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

Last updated on January 3rd, 2012

requirements

#Django commands #argument parser #Django #ArgumentParser #commands #argument

Add your review!

SUBMIT