--name and --username consistency issue in CLI #2968

Closed
opened 2025-11-02 04:55:33 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ghost on GitHub (Feb 24, 2019).

  • Gitea version (or commit ref): 1.7
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

In create-user --name is used, but in change-password --username is used instead.

Originally created by @ghost on GitHub (Feb 24, 2019). - Gitea version (or commit ref): 1.7 - Can you reproduce the bug at https://try.gitea.io: - [x] Not relevant ## Description In create-user --name is used, but in change-password --username is used instead.
GiteaMirror added the type/proposaltype/enhancement labels 2025-11-02 04:55:33 -06:00
Author
Owner

@ngourdon commented on GitHub (Apr 6, 2019):

Which one should we keep ?
I think "--name" is better. We know we're talking about user in these commands.

We should keep both parameters to ensure backward compatibility for a while.

I can contribute on this if we're OK.

@ngourdon commented on GitHub (Apr 6, 2019): Which one should we keep ? I think "--name" is better. We know we're talking about user in these commands. We should keep both parameters to ensure backward compatibility for a while. I can contribute on this if we're OK.
Author
Owner

@mrsdizzie commented on GitHub (Apr 6, 2019):

I think this should always be --username when referring to the actual username

username is a term with a specific meaning (the username), where as name is not.

Also, an account has both a username and then a separate name/full name field so it should always use the phrase username when referring to the actual username (which this case is).

@mrsdizzie commented on GitHub (Apr 6, 2019): I think this should always be --username when referring to the actual username username is a term with a specific meaning (the username), where as name is not. Also, an account has both a username and then a separate name/full name field so it should always use the phrase username when referring to the actual username (which this case is).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2968