From: Jean Privat Date: Thu, 4 Dec 2014 04:07:27 +0000 (-0500) Subject: nitls: reuse ProjTree::display for the simple list X-Git-Tag: v0.7~75^2~22 X-Git-Url: http://nitlanguage.org nitls: reuse ProjTree::display for the simple list Signed-off-by: Jean Privat --- diff --git a/src/nitls.nit b/src/nitls.nit index abdc4f1..fc6bd41 100644 --- a/src/nitls.nit +++ b/src/nitls.nit @@ -116,8 +116,8 @@ end if sum == 0 then opt_project.value = true +var ot = new ProjTree if opt_tree.value then - var ot = new ProjTree ot.opt_paths = opt_paths.value for p in model.mprojects do for g in p.mgroups do @@ -139,7 +139,7 @@ if opt_source.value then if opt_paths.value then list.add(mp.filepath) else - list.add("{g.full_name}/{mp.name} ({mp.filepath})") + list.add("{g.full_name}/{ot.display(mp)}") end end end