loop
for f in list_files(dir) do
var path = dir/f
- if path.file_stat.is_dir then
+ if path.file_stat.as(not null).is_dir then
directories.push(path)
else if f.has_suffix(".xml") and f != "index.xml" then
reader.read(path)
init do
sources["any"] = new DefaultSource
sources["java"] = new JavaSource
+ sources["python"] = new PythonSource
var prefix = new OptionText("""
{{{"NAME".bold}}}
var keys = new Array[String].from(sources.keys)
opt_src_lang = new OptionEnum(keys,
- "The programming language to assume when processing chunk in the declarations left as-is by Doxygen. Use `any` (the default) to disable any language-specific processing.",
+ "The programming language to assume when processing chunks in the declarations left as-is by Doxygen. Use `any` (the default) to disable any language-specific processing.",
keys.index_of("any"), "--src-lang")
option_context.add_option(opt_src_lang)
end
end
option_context.parse(args)
- var errors = option_context.get_errors
+ var errors = option_context.errors
var rest = option_context.rest
if errors.is_empty and not opt_help.value and rest.length != 2 then
# Add handling of multi-line descriptions.
#
-# Note: The algorithm is naive and do not handle internationalisation and
-# escape sequences.
+# Note: The algorithm is naive and do not handle internationalisation,
+# multi-byte characters and control characters.
redef class Option
redef fun pretty(off) do