Method: Yast::CommandLineClass#Error
- Defined in:
- library/commandline/src/modules/CommandLine.rb
#Error(message) ⇒ Object
Print an Error Message
Print an error message and add the description how to get the help.
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
# File 'library/commandline/src/modules/CommandLine.rb', line 324 def Error() Print() if !.nil? if @interactive # translators: default error message for command line Print(_("Use 'help' for a complete list of available commands.")) else # translators: default error message for command line Print( Builtins.sformat( _("Use 'yast2 %1 help' for a complete list of available commands."), Ops.get_string(@modulecommands, "id", "") ) ) end nil end |