Skip to content

script/create_admin usage not clear #7237

@perlpunk

Description

@perlpunk

I think the script can be rewritten to not have that requirement.
Getopt::Long can usually be called first and will remove any parsed options from @ARGV.
But the way it is now is hard to understand as it requires $numars to be > 1, which just means "one more entry in ARGV additionally to the user, but it can be anything". To me it's actually not clear which arguments are required. Is it --email, --fullname or --nickname?

I know that you didn't write this, and maybe it's fine as it is just working, I just wanted to mention it.
Maybe we can add a followup task to rewrite this with Getopt::Long::Descriptive.

Originally posted by @perlpunk in #7233

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions