Issue #984 Improve module listing

Always add a -internal unless internal is explictly mentioned
This commit is contained in:
Greg Wilkins 2016-10-13 10:03:14 +11:00
parent 0dab6cb974
commit 79a6d3892c
2 changed files with 9 additions and 4 deletions

View File

@ -752,7 +752,11 @@ public class StartArgs
public List<String> getListModules()
{
return listModules;
if (listModules == null || listModules.contains("internal") || listModules.contains("-internal"))
return listModules;
List<String> modules = new ArrayList<>(listModules);
modules.add("-internal");
return modules;
}
public boolean isRun()
@ -873,7 +877,7 @@ public class StartArgs
if (arg.equals("--create-files"))
{
run = false;
download = true;boolean
download = true;
licenseCheckRequired = true;
return;
}
@ -949,7 +953,7 @@ public class StartArgs
// Module Management
if ("--list-modules".equals(arg))
{
listModules = Collections.singletonList("-internal");
listModules = Collections.emptyList();
run = false;
return;
}

View File

@ -70,7 +70,8 @@ Module Management:
--list-modules=<tag>(,<tag>)*
List modules by tag. Use '*' for all tags. Prefix a tag
with '-' to exclude the tag.
with '-' to exclude the tag. The special tag "internal"
is always excluded unless it is explicitly included.
--list-all-modules
List all modules.