ПФ
Size: a a a
ПФ
Е
ПФ
Е
ЕГ
Е
DZ
object HelloWorld extends CommandApp(
name = "hello-world",
header = "Says hello!",
main = {
val userOpt =
Opts.option[String]("target", help = "Person to greet.")
.withDefault("world")
val quietOpt = Opts.flag("quiet", help = "Whether to be quiet.").orFalse
(userOpt, quietOpt).mapN { (user, quiet) =>
if (quiet) println("...")
else println(s"Hello $user!")
}
}
GP
DZ
DZ
GP
ПФ
ПФ
ПБ
ПФ
AS
ПФ
AS
ПФ
AS