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
If you run following example without providing any arguments, app exits with zero exit code without help/usage
sealed trait DemoCommand case class First(foo: Int, bar: String) extends DemoCommand case class Second(baz: Double) extends DemoCommand object MyApp extends CommandApp[DemoCommand] { def run(command: DemoCommand, args: RemainingArgs): Unit = {} }
The text was updated successfully, but these errors were encountered:
Just use
override def main(args: Array[String]): Unit = { if (args.isEmpty) { helpAsked() } else super.main(args) }
Sorry, something went wrong.
No branches or pull requests
If you run following example without providing any arguments, app exits with zero exit code without help/usage
The text was updated successfully, but these errors were encountered: