Merge pull request #2853 from normanjaeckel/ManagePy
Added error message for unknown args. Fixed #2200.
This commit is contained in:
commit
8c9bde27fb
@ -36,6 +36,9 @@ def main():
|
||||
setup_django_settings_module(local_installation=local_installation)
|
||||
execute_from_command_line(sys.argv)
|
||||
else:
|
||||
# Check for unknown_args.
|
||||
if unknown_args:
|
||||
parser.error('Unknown arguments {}'.format(' '.join(unknown_args)))
|
||||
# Run a command that is defined here
|
||||
# These are commands that can not rely on an existing settings
|
||||
known_args.callback(known_args)
|
||||
|
Loading…
Reference in New Issue
Block a user