Skip to content
New issue

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

Only one missing option is reported at a time #70

Closed
danxmoran opened this issue Sep 16, 2017 · 1 comment
Closed

Only one missing option is reported at a time #70

danxmoran opened this issue Sep 16, 2017 · 1 comment

Comments

@danxmoran
Copy link
Contributor

Using caseapp 1.2.0, if you have:

import caseapp._

case class ExampleOptions(
  foo: String,
  bar: Int
)

object Example extends CaseApp[ExampleOptions] {
  def run(options: ExampleOptions, arg: RemainingArgs): Unit = {
    println(options)
    println(arg)
  }
}

If you run without arguments, you see:

$ sbt -error run
[error] Required option --foo not specified

Which is correct, but it'd be awesome if both --foo and --bar were reported missing.

@danxmoran
Copy link
Contributor Author

I've got a fix for this; will push it once I do some cleanup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants