Alexandre Archambault
Alexandre Archambault
Yes, `=` can be used for all options. `=` is optional for options requiring a value, such as string options. For options accepting an optional value (it's only booleans IIRC),...
Sorry to answer that a bit late... - What do you mean by "positional arguments"? :-) - It would be cool to get some infos from the scaladoc, I'm not...
`@Arg` looks cool! With or without the index as param (Like you commented, I'm not sure the param would be that useful either). My understanding is that these are likely...
Yes, that's what I mean. It's quite recent, it's been added in `1.2.0-M1`. Also, forget my point about the issue with help and these mandatory args, https://github.com/alexarchambault/case-app/pull/63 fixes it :-)
@ryan-williams A `LabelledGeneric` should be enough (`LabelledGeneric` itself requiring `Generic` and `DefaultSymbolicLabelling`). Yeah, you should be able to find help on the shapeless room.
Agreed, I just didn't take the time to do it. [sbt-microsites](https://github.com/47degrees/sbt-microsites) could work too. PR welcome!
@YannMoisan It should work out-of-the-box with it, like ```scala import caseapp._ import caseapp.core.Defaults._ object Example extends CaseApp[ExampleOptions] ``` (doesn't it for you?) The `Parser` is [derived along `CaseApp`](https://github.com/alexarchambault/case-app/blob/bd7c81a8fbec35eda6165f4f596bdd0adbffc077/core/shared/src/main/scala/caseapp/core/app/CaseApp.scala#L8).
I've been using a workaround for that too, in coursier: https://github.com/coursier/coursier/blob/b4dd43e03c478fb1d72fe49999751f9cf6e8e6be/cli/src/main/scala-2.11/coursier/cli/Coursier.scala. I'd like to have something along the lines of your first example work too.
Can't give your example a try right now, but you should need to either define an implicit `caseapp.core.Default[java.io.File]`, or give `file` a default value, or wrap it in an option...
👍 for the first two points at least. What do you mean about the flags? That the short version should be printed before the long one?