﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22702	Management command options can be parsed twice.	mardini	nobody	"Under some circumstances, a management command option can be parsed twice, here's an example (I'm aware that `--version` can be called alone):

{{{
$ python manage.py runserver --version
1.8.dev20140524142208
1.8.dev20140524142208
}}}

After a quick look, there seems to be two places in `core/management/__init__.py` where commands options are parsed, both in `ManagementUtility.execute()`:

{{{
# First time, via LaxOptionParser()
options, args = parser.parse_args(self.argv)

# Second time
self.fetch_command(subcommand).run_from_argv(self.argv)
}}}

I think there should be a check to make sure that once a command option is run, it won't be parsed again."	Bug	closed	Core (Management commands)	dev	Normal	duplicate			Unreviewed	0	0	0	0	0	0
