fix single-option regression

This commit is contained in:
Jonathan Shook 2020-09-09 15:54:10 -05:00
parent 4c652fe4cd
commit 5df86396c4

View File

@ -144,6 +144,11 @@ public class NBCLIOptions {
addAll(Arrays.asList(args));
}};
if (arglist.peekFirst() == null) {
wantsBasicHelp = true;
return arglist;
}
// Preprocess --include regardless of position
LinkedList<String> nonincludes = new LinkedList<>();
while (arglist.peekFirst() != null) {
@ -200,11 +205,6 @@ public class NBCLIOptions {
PathCanonicalizer canonicalizer = new PathCanonicalizer(wantsIncludes());
if (arglist.peekFirst() == null) {
wantsBasicHelp = true;
return;
}
LinkedList<String> nonincludes = new LinkedList<>();
while (arglist.peekFirst() != null) {