Signed-off-by: Jean Privat <jean@pryen.org>
class AbstractCompiler
special ToolContext
- init
+ init(tool_name: String)
do
+ _tool_name = tool_name
super
register_loader(new SrcModuleLoader)
end
+ # The name of the tool
+ # Used in help messages for instance
+ readable attr _tool_name: String
+
meth exec_cmd_line
do
process_options
if opt_help.value then
+ print "usage: {tool_name} [options] file..."
option_context.usage
exit(0)
end
if option_context.rest.length == 0 then
+ print "usage: {tool_name} [options] file..."
option_context.usage
exit(1)
end
init
do
- super
+ super("nitc")
option_context.add_option(opt_output, opt_boost, opt_no_cc, opt_global, opt_clibdir, opt_bindir, opt_compdir, opt_extension_prefix)
end
init
do
- super
+ super("nitdoc")
option_context.add_option(opt_dir)
end