Issue #984 Improve module listing
Always add a -internal unless internal is explictly mentioned
This commit is contained in:
parent
0dab6cb974
commit
79a6d3892c
|
@ -752,7 +752,11 @@ public class StartArgs
|
|||
|
||||
public List<String> getListModules()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue