Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GaretJax/django-click
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: huifenqi/django-click
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 21, 2018

  1. clean

    iamsk committed Aug 21, 2018
    Copy the full SHA
    7380fc8 View commit details

Commits on Oct 8, 2018

  1. Update README.rst

    iamsk authored Oct 8, 2018
    Copy the full SHA
    c753e80 View commit details
Showing with 13 additions and 2 deletions.
  1. +1 −1 README.rst
  2. +12 −1 djclick/adapter.py
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ Installation

::

pip install django-click
pip install git+https://github.com/huifenqi/django-click.git


Example
13 changes: 12 additions & 1 deletion djclick/adapter.py
Original file line number Diff line number Diff line change
@@ -196,7 +196,7 @@ def __init__(self, **kwargs):
def get_params(self, name):
def show_help(ctx, param, value):
if value and not ctx.resilient_parsing:
ctx.info_name += ' ' + name
# ctx.info_name += ' ' + name
click.echo(ctx.get_help(), color=ctx.color)
ctx.exit()

@@ -242,6 +242,17 @@ def new_func(*args, **kwargs):
class CommandRegistrator(BaseRegistrator):
cls = CommandAdapter

common_options = [
click.option(
'--settings',
metavar='SETTINGS',
expose_value=False,
help=('The Python path to a settings module, e.g. '
'"project.settings.dev". If this is not provided, the '
'DJANGO_SETTINGS_MODULE environment variable will be used.'),
),
]


class GroupRegistrator(BaseRegistrator):
cls = GroupAdapter