Skip to content

Unknown Arguments trigger displays garbled user input #78

@d1str0

Description

@d1str0

Sorry for a possibly confusing title...

If I set a group and subsequent command similar to,

let test = Group {
        
        $0.command("get",
                   Option("user", default: "", description: "The user to get."),
                   description: "Get User Information")

But I call the program as so:
$ test get -user myuser

Notice how "-user" should have an extra "-", this causes the "Unknown Arguments" error to print out:

Unknown Arguments: -usre myuser

Options:
    --user [default: ] - The user to get.

Notice "-usre" is garbled. Upon further runs, this word seems to rotate through it's order of letters. Very strange.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions