-
-
Notifications
You must be signed in to change notification settings - Fork 301
Open
Labels
type: featureA new enhacement proposalA new enhacement proposal
Milestone
Description
Description
Some questions about exit codes were raised while I was reviewing our document.
- The current description of
NotAllowedis
`--incremental` cannot be combined with a rev_range
But now we use NotAllowed for other scenarios as well. It's a bit outdated.
- What is the difference among
InvalidCommandArgumentError,InvalidConfigurationError,NotAllowed? I guess we need to clarify the usages.
- One of possible solutions may like giving them better, for example
UnknownCommandArgument,UnknownConfigurationFileFormat. The word "invalid" has a lot of possible interpretations and it is very likely to be misused.
InvalidManualVersionsounds like a kind ofInvalidCommandArgumentError- We have to add docstrings to those exceptions to reduce the possibility of misuse or abuse of exceptions. It would be even better if there is a tool to update the content of
docs/exit_code.mdwhenever there is an update inexceptions.py
https://github.com/commitizen-tools/commitizen/blob/master/commitizen/exceptions.py
woile
Metadata
Metadata
Assignees
Labels
type: featureA new enhacement proposalA new enhacement proposal