mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #26021 -- Applied hanging indentation to docs.
This commit is contained in:
parent
38575b007a
commit
4a4d7f980e
21 changed files with 185 additions and 107 deletions
|
@ -106,11 +106,13 @@ options can be added in the :meth:`~BaseCommand.add_arguments` method like this:
|
|||
parser.add_argument('poll_id', nargs='+', type=int)
|
||||
|
||||
# Named (optional) arguments
|
||||
parser.add_argument('--delete',
|
||||
parser.add_argument(
|
||||
'--delete',
|
||||
action='store_true',
|
||||
dest='delete',
|
||||
default=False,
|
||||
help='Delete poll instead of closing it')
|
||||
help='Delete poll instead of closing it',
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
# ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue