title: Django custom command error: unrecognized arguments
body: <p>I'm trying to create a command similar to <code>createsuperuser</code> which will take two arguments (username and password)</p>
  
  <p>Its working fine in django 1.7 but not in 1.8.  (I'm also using python3.4)</p>
  
  <p>this is the code I wrote</p>
  
  <p><strong>myapp/management/commands/createmysuperuser.py</strong></p>
  
  <pre><code>from django.core.management.base import BaseCommand, CommandError
  from django.contrib.auth.models import User
  
  
  class Command(BaseCommand):
      help = 'Create a super user'
  
      def handle(self, *args, **options):
  
          if len(args) != 2:
              raise CommandError('need exactly two arguments for username and password')
          username, password = args
  
          u, created = User.objects.get_or_create(username=username)
          if created:
              u.is_superuser = True
              u.is_staff = True
              u.set_password(password)
              u.save()
          else:
              raise CommandError("user '%s' already exist" % username)
  
          return "Password changed successfully for user '%s'" % u.username
  </code></pre>
  
  <p>and when I try to run this command </p>
  
  <p><code>$ python manage.py createmysuperuser myuser mypassword</code></p>
  
  <p>I get this error</p>
  
  <pre><code>usage: manage.py createmysuperuser [-h] [--version] [-v {0,1,2,3}]
                                     [--settings SETTINGS]
                                     [--pythonpath PYTHONPATH] [--traceback]
                                     [--no-color]
  manage.py createmysuperuser: error: unrecognized arguments: myuser mypassword
  </code></pre>
  
  <p>but when I dont pass any arguments it raises <code>CommandError</code> which is expected.</p>
  
  <p><code>CommandError: need exactly two arguments for username and password</code></p>