var opt_tree = new OptionBool("List source files in their groups and projects", "-t", "--tree")
var opt_source = new OptionBool("List source files", "-s", "--source")
var opt_project = new OptionBool("List projects paths (default)", "-p", "--project")
var opt_tree = new OptionBool("List source files in their groups and projects", "-t", "--tree")
var opt_source = new OptionBool("List source files", "-s", "--source")
var opt_project = new OptionBool("List projects paths (default)", "-p", "--project")
-tc.option_context.add_option(opt_keep, opt_recursive, opt_tree, opt_source, opt_project)
+tc.option_context.add_option(opt_keep, opt_recursive, opt_tree, opt_source, opt_project, opt_depends)
if sum > 1 or tc.option_context.rest.is_empty or tc.opt_help.value then
print "Usage: nitls [OPTION].. [FILES]..."
print "List Nit source files"
if sum > 1 or tc.option_context.rest.is_empty or tc.opt_help.value then
print "Usage: nitls [OPTION].. [FILES]..."
print "List Nit source files"
+if opt_depends.value then
+ if opt_recursive.value then
+ print "-M incompatible with -r"
+ exit 1
+ end
+
+ mb.parse(tc.option_context.rest)
+ for x in model.mmodules do
+ print x.location.file.filename
+ end
+end
+