KeisukeYamashita / commitlint-rs

🔦 Lint commit messages with conventional commit messages
https://keisukeyamashita.github.io/commitlint-rs
Apache License 2.0
32 stars 8 forks source link

commitlint --edit should take an argument #372

Open jceb opened 4 days ago

jceb commented 4 days ago

As pointed out in #289, the --edit flag doesn't take an argument. However, according to the documentation and according to the behavior of @commitlint/cli it should take an argument:

-e, --edit Read last commit from the specified file or fallbacks to ./.git/COMMIT_EDITMSG

Error message

Please paste the error message below:

commitlint -e .git/COMMIT_EDITMSG
   error: unexpected argument '.git/COMMIT_EDITMSG' found

   Usage: commitlint [OPTIONS]

   For more information, try '--help'.

Expected behavior

The argument should be accepted + the contents of the file should be evaluated as commit message.

Version

# Run the following command
$ commitlint --version
commitlint-rs 0.1.11
KeisukeYamashita commented 2 days ago

@jceb Thank you for reaching out! I'll take a look today or this weekend.