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
I have a command defined like so:
@HelpMessage("help-4") case object Build extends Command[CommonOptions]: override def names: List[List[String]] = List(List("build")) override def help = super.help.copy(helpMessage = Some(HelpMessage("help-1", "help-2", "help-3"))) override def run(options: CommonOptions, remainingArgs: RemainingArgs): Unit = ???
And neither of help-* messages are printed when I run the app with --help or build --help.
help-*
--help
build --help
I've managed to get help-1 text printed for this command with an ovveride in CommandsEntryPoint:
help-1
CommandsEntryPoint
object Main extends CommandsEntryPoint: override val commands = List( Build ) override def help: RuntimeCommandsHelp = super.help.copy(commands = commands.map(cmd => RuntimeCommandHelp(cmd.names, cmd.help, cmd.group, cmd.hidden)))
The only change in the override from the default is cmd.finalHelp was changed to cmd.help.
cmd.finalHelp
cmd.help
I think there is an issue with finalHelp implementation, which in 2.1.0-M29 is:
finalHelp
2.1.0-M29
lazy val finalHelp: Help[_] = { val h = if (hasFullHelp) messages.withFullHelp else if (hasHelp) messages.withHelp else messages if (name == h.progName) h else h.withProgName(name) }
I think that instead of referencing messages it should instead reference help so that it's possible to modify it.
messages
help
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a command defined like so:
And neither of
help-*
messages are printed when I run the app with--help
orbuild --help
.I've managed to get
help-1
text printed for this command with an ovveride inCommandsEntryPoint
:The only change in the override from the default is
cmd.finalHelp
was changed tocmd.help
.I think there is an issue with
finalHelp
implementation, which in2.1.0-M29
is:I think that instead of referencing
messages
it should instead referencehelp
so that it's possible to modify it.The text was updated successfully, but these errors were encountered: