Attempt to fix 4
This commit is contained in:
parent
ad18164d69
commit
81f9cd270a
|
@ -32,9 +32,7 @@ public class BatchCommand extends Command {
|
|||
}
|
||||
try {
|
||||
for (String line : Files.readAllLines(p)) {
|
||||
CommandResolution resolution = CliMain.resolve(ArgumentsTokenizer.tokenize(line), args.wrapped);
|
||||
if (resolution.command() instanceof WrapperCommand)
|
||||
throw new Exception("You may not use the wrapper command in a command batch");
|
||||
CommandResolution resolution = CliMain.resolve(ArgumentsTokenizer.tokenize(line));
|
||||
resolved.add(resolution);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue