Ticket #943: django-admin.diff
File django-admin.diff, 846 bytes (added by , 19 years ago) |
---|
-
django-admin.py
84 84 try: 85 85 username, email, password = args[1], args[2], args[3] 86 86 except IndexError: 87 sys.stderr.write("Error: %r requires arguments of 'username email password' or no argument at all.\n") 88 sys.exit(1) 87 if len(args) == 1: # we got no arguments only the action 88 ACTION_MAPPING[action]() 89 else: 90 sys.stderr.write("Error: %r requires arguments of 'username email password' or no argument at all.\n") 91 sys.exit(1) 89 92 ACTION_MAPPING[action](username, email, password) 90 93 elif action in ('init', 'validate'): 91 94 ACTION_MAPPING[action]()