From: Jean Privat Date: Fri, 5 Dec 2014 03:18:10 +0000 (-0500) Subject: nitls: work on . by default X-Git-Tag: v0.7~75^2~10 X-Git-Url: http://nitlanguage.org nitls: work on . by default Signed-off-by: Jean Privat --- diff --git a/src/nitls.nit b/src/nitls.nit index c94dbe2..49ec699 100644 --- a/src/nitls.nit +++ b/src/nitls.nit @@ -119,6 +119,7 @@ var opt_paths = new OptionBool("List only path (instead of name + path)", "-p", 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]... ...\nLists the projects and/or paths of Nit sources files." +tc.accept_no_arguments = true tc.process_options(args) if opt_make.value then @@ -139,6 +140,7 @@ tc.keep_going = opt_keep.value 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]