Skip to content

Commit

Permalink
Fix docstring model reference and add help text.
Browse files Browse the repository at this point in the history
The docstring was referring to Workspace, which is incorrect. Correct it to
mention User instead.

Add a help text briefly explaining the purpose of the command.

Update the username argument help text to mention this User will be EITHER
created OR updated.
  • Loading branch information
mikerkelly committed Oct 17, 2024
1 parent 8cbbb0c commit e479abb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions jobserver/management/commands/create_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@


class Command(BaseCommand):
"""
Create or update a workspace.
"""Create or update a User."""

Will create Project and Repo as needed, and ensure the supplied user as
Project Developer of the workspace.
"""
help = "Create or update a User"

def add_arguments(self, parser):
parser.add_argument("username", help="User to create")
parser.add_argument("username", help="User to create or update")
parser.add_argument("--email", help="Defaults to [email protected]")
parser.add_argument("--name", help="Defaults to username")
parser.add_argument(
Expand Down

0 comments on commit e479abb

Please sign in to comment.