Skip to content

commitlint --edit should take an argument #372

@jceb

Description

@jceb

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions