Signed-off-by: Jean Privat <jean@pryen.org>
tc.option_context.add_option(opt_keep, opt_recursive, opt_tree, opt_source, opt_project, opt_depends, opt_paths, opt_make)
tc.tooldescription = "Usage: nitls [OPTION]... <file.nit|directory>...\nLists the projects and/or paths of Nit sources files."
tc.option_context.add_option(opt_keep, opt_recursive, opt_tree, opt_source, opt_project, opt_depends, opt_paths, opt_make)
tc.tooldescription = "Usage: nitls [OPTION]... <file.nit|directory>...\nLists the projects and/or paths of Nit sources files."
+tc.accept_no_arguments = true
tc.process_options(args)
if opt_make.value then
tc.process_options(args)
if opt_make.value then
var model = new Model
var mb = new ModelBuilder(model, tc)
var model = new Model
var mb = new ModelBuilder(model, tc)
+if tc.option_context.rest.is_empty then tc.option_context.rest.add "."
var files
if opt_recursive.value then
files = new Array[String]
var files
if opt_recursive.value then
files = new Array[String]