Default Values can Throw Exceptions before Validation #105

Open
opened 2020-06-10 01:14:17 +01:00 by Ghost · 0 comments
Ghost commented 2020-06-10 01:14:17 +01:00 (Migrated from codeberg.org)

Feature Request

Sub-Project

  • core

Description

If a command parameter has a default value, an uncaught exception is thrown if Commandler is unable to resolve the parameter. This is normally fine, however there are cases where it may be preferred to treat not finding the value as not providing the parameter?

# Feature Request <!-- If you feel a heading is irrelevant, just leave it empty or remove it. --> ## Sub-Project <!-- Can you specify which sub-project(s) this is relevant to? If you aren't sure, or this is a proposal for a new sub-project, you can delete this. --> * core ## Description <!-- Explain what this is about, try to use full sentences, and make your point clear. --> If a command parameter has a default value, an uncaught exception is thrown if Commandler is unable to resolve the parameter. This is normally fine, however there are cases where it may be preferred to treat not finding the value as not providing the parameter?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
SethFalco/commandler#105
No description provided.