core.management.BaseCommand.add_arguments()

BaseCommand.add_arguments(parser) [source]

Entry point to add parser arguments to handle command line arguments passed to the command. Custom commands should override this method to add both positional and optional arguments accepted by the command. Calling super() is not needed when directly subclassing BaseCommand.

doc_Django
2016-10-09 18:34:54
Comments
Leave a Comment

Please login to continue.