[ 
https://issues.apache.org/jira/browse/MESOS-1778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133233#comment-14133233
 ] 

Alexander Rukletsov commented on MESOS-1778:
--------------------------------------------

I think it makes sense to embed it into the {{FlagsBase::add()}}, so we have 
flag definition, default value and validation checks in the same place.

> Provide an option to validate flag value in stout/flags. 
> ---------------------------------------------------------
>
>                 Key: MESOS-1778
>                 URL: https://issues.apache.org/jira/browse/MESOS-1778
>             Project: Mesos
>          Issue Type: Improvement
>          Components: stout
>            Reporter: Alexander Rukletsov
>            Priority: Minor
>
> Currently we can provide the default value for a flag, but cannot check if 
> the flag is set to a reasonable value and, e.g., issue a warning. Passing an 
> optional lambda checker to {{FlagBase::add()}} can be a possible solution.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to