Skip to content

Panic when incorrect alias format #3

@ikar49

Description

@ikar49

When I call cargo-alias test it's panicked:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\bin\cargo-alias.rs:37:59

because you need check result of split here:

let (alias, commands) = new_alias.split_once("=").unwrap();

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