We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With version 1.2.0, it seems that defaultDescription are always set to None
defaultDescription
None
Here is a small example to reproduce the bug : https://scastie.scala-lang.org/YgickCTpTkWDK7xpoVTOJw
Arg(i,List(Name(i)),None,None,false,false,int,None) Arg(s,List(Name(s)),None,None,false,false,string,None) Arg(b,List(Name(b)),None,None,false,true,bool,None) Arg(li,List(Name(li)),None,None,false,false,int*,None)
And it works with version 1.2.0-M2
Arg(i,List(Name(i)),None,None,false,false,int,Some(2)) Arg(s,List(Name(s)),None,None,false,false,string,Some("defaultt")) Arg(b,List(Name(b)),None,None,false,true,bool,Some(false)) Arg(li,List(Name(li)),None,None,false,false,int*,Some(List()))
The text was updated successfully, but these errors were encountered:
After searching a bit, it seems related to this commit d292098
I've just found a workaround by importing import core.Defaults._
import core.Defaults._
But I don't know how to use it with this syntax object Example extends CaseApp[ExampleOptions]
object Example extends CaseApp[ExampleOptions]
Sorry, something went wrong.
@YannMoisan It should work out-of-the-box with it, like
import caseapp._ import caseapp.core.Defaults._ object Example extends CaseApp[ExampleOptions]
(doesn't it for you?) The Parser is derived along CaseApp.
Parser
CaseApp
It works ! I was misled by IntelliJ that displays unused import.
No branches or pull requests
With version 1.2.0, it seems that
defaultDescription
are always set toNone
Here is a small example to reproduce the bug : https://scastie.scala-lang.org/YgickCTpTkWDK7xpoVTOJw
And it works with version 1.2.0-M2
The text was updated successfully, but these errors were encountered: