Permalink
Browse files

Tweak options

Usage should now print 'almond' as program name (rather than 'options')
  • Loading branch information...
alexarchambault committed Oct 4, 2018
1 parent c509b75 commit 25e8cee6f6e7843e0362fc8b1b02ab76788dfa3c
Showing with 11 additions and 0 deletions.
  1. +11 −0 modules/scala/scala-kernel/src/main/scala/almond/Options.scala
@@ -5,7 +5,9 @@ import java.util.regex.Pattern
import almond.protocol.KernelInfo
import almond.kernel.install.{Options => InstallOptions}
import caseapp._
import caseapp.core.help.Help
@ProgName("almond")
final case class Options(
install: Boolean = false,
@Recurse
@@ -77,3 +79,12 @@ final case class Options(
}
}
object Options {
implicit val help = Help[Options].copy(
// not sure why the @ProgName annotation above isn't picked here
progName = "almond"
)
}

0 comments on commit 25e8cee

Please sign in to comment.