Django Commands using ArgumentParser
Project description
**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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-argparse-command-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d7d431acbaa765837eb9710122b1c6f0218f9b93a5ad9c6597fd2873475817 |
|
MD5 | 93173a11f97fca0162970455d9758bdf |
|
BLAKE2b-256 | d6e0a8b83bf831aa9cf7b066dc5c9643516ad0caed5a45925b9ecc2d49dd41ed |