Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.data;
- import gk;
- import gn;
- import gu;
- import gv;
- import gw;
- import hd;
- import hh;
- import ho;
- import hp;
- import hq;
- import hs;
- import ht;
- import hu;
- import hv;
- import java.io.IOException;
- import java.nio.file.Path;
- import java.nio.file.Paths;
- import java.util.Collection;
- import java.util.stream.Collectors;
- import joptsimple.AbstractOptionSpec;
- import joptsimple.ArgumentAcceptingOptionSpec;
- import joptsimple.OptionParser;
- import joptsimple.OptionSet;
- import joptsimple.OptionSpecBuilder;
- public class Main {
- public static void main(String[] ?) throws IOException {
- OptionParser ? = new OptionParser();
- AbstractOptionSpec abstractOptionSpec = ?.accepts("help", "Show the help menu").forHelp();
- OptionSpecBuilder optionSpecBuilder1 = ?.accepts("server", "Include server generators");
- OptionSpecBuilder optionSpecBuilder2 = ?.accepts("client", "Include client generators");
- OptionSpecBuilder optionSpecBuilder3 = ?.accepts("dev", "Include development tools");
- OptionSpecBuilder optionSpecBuilder4 = ?.accepts("reports", "Include data reports");
- OptionSpecBuilder optionSpecBuilder5 = ?.accepts("validate", "Validate inputs");
- OptionSpecBuilder optionSpecBuilder6 = ?.accepts("all", "Include all generators");
- ArgumentAcceptingOptionSpec argumentAcceptingOptionSpec1 = ?.accepts("output", "Output folder").withRequiredArg().defaultsTo("generated", new String[0]);
- ArgumentAcceptingOptionSpec argumentAcceptingOptionSpec2 = ?.accepts("input", "Input folder").withRequiredArg();
- OptionSet ? = ?.parse(?);
- if (?.has(abstractOptionSpec) || !?.hasOptions()) {
- ?.printHelpOn(System.out);
- return;
- }
- Path ? = Paths.get((String)argumentAcceptingOptionSpec1.value(?), new String[0]);
- boolean ? = ?.has(optionSpecBuilder6);
- boolean ? = (? || ?.has(optionSpecBuilder2));
- boolean ? = (? || ?.has(optionSpecBuilder1));
- boolean ? = (? || ?.has(optionSpecBuilder3));
- boolean ? = (? || ?.has(optionSpecBuilder4));
- boolean ? = (? || ?.has(optionSpecBuilder5));
- gk ? = a(?, (Collection)?.valuesOf(argumentAcceptingOptionSpec2).stream().map(? -> Paths.get(?, new String[0])).collect(Collectors.toList()), ?, ?, ?, ?, ?);
- ?.c();
- }
- public static gk a(Path ?, Collection<Path> ?, boolean ?, boolean ?, boolean ?, boolean ?, boolean ?) {
- gk ? = new gk(?, ?);
- if (? || ?) {
- ?.a((new hp(?))
- .a(new hq()));
- }
- if (?) {
- ?.a(new hu(?));
- ?.a(new hs(?));
- ?.a(new hv(?));
- ?.a(new ht(?));
- ?.a(new hh(?));
- ?.a(new gn(?));
- ?.a(new hd(?));
- }
- if (?) {
- ?.a(new ho(?));
- }
- if (?) {
- ?.a(new gu(?));
- ?.a(new gw(?));
- ?.a(new gv(?));
- }
- return ?;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement