Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. package net.minecraft.data;
  2.  
  3. import gk;
  4. import gn;
  5. import gu;
  6. import gv;
  7. import gw;
  8. import hd;
  9. import hh;
  10. import ho;
  11. import hp;
  12. import hq;
  13. import hs;
  14. import ht;
  15. import hu;
  16. import hv;
  17. import java.io.IOException;
  18. import java.nio.file.Path;
  19. import java.nio.file.Paths;
  20. import java.util.Collection;
  21. import java.util.stream.Collectors;
  22. import joptsimple.AbstractOptionSpec;
  23. import joptsimple.ArgumentAcceptingOptionSpec;
  24. import joptsimple.OptionParser;
  25. import joptsimple.OptionSet;
  26. import joptsimple.OptionSpecBuilder;
  27.  
  28. public class Main {
  29. public static void main(String[] ?) throws IOException {
  30. OptionParser ? = new OptionParser();
  31. AbstractOptionSpec abstractOptionSpec = ?.accepts("help", "Show the help menu").forHelp();
  32. OptionSpecBuilder optionSpecBuilder1 = ?.accepts("server", "Include server generators");
  33. OptionSpecBuilder optionSpecBuilder2 = ?.accepts("client", "Include client generators");
  34. OptionSpecBuilder optionSpecBuilder3 = ?.accepts("dev", "Include development tools");
  35. OptionSpecBuilder optionSpecBuilder4 = ?.accepts("reports", "Include data reports");
  36. OptionSpecBuilder optionSpecBuilder5 = ?.accepts("validate", "Validate inputs");
  37. OptionSpecBuilder optionSpecBuilder6 = ?.accepts("all", "Include all generators");
  38. ArgumentAcceptingOptionSpec argumentAcceptingOptionSpec1 = ?.accepts("output", "Output folder").withRequiredArg().defaultsTo("generated", new String[0]);
  39. ArgumentAcceptingOptionSpec argumentAcceptingOptionSpec2 = ?.accepts("input", "Input folder").withRequiredArg();
  40. OptionSet ? = ?.parse(?);
  41.  
  42. if (?.has(abstractOptionSpec) || !?.hasOptions()) {
  43. ?.printHelpOn(System.out);
  44.  
  45. return;
  46. }
  47. Path ? = Paths.get((String)argumentAcceptingOptionSpec1.value(?), new String[0]);
  48. boolean ? = ?.has(optionSpecBuilder6);
  49. boolean ? = (? || ?.has(optionSpecBuilder2));
  50. boolean ? = (? || ?.has(optionSpecBuilder1));
  51. boolean ? = (? || ?.has(optionSpecBuilder3));
  52. boolean ? = (? || ?.has(optionSpecBuilder4));
  53. boolean ? = (? || ?.has(optionSpecBuilder5));
  54. gk ? = a(?, (Collection)?.valuesOf(argumentAcceptingOptionSpec2).stream().map(? -> Paths.get(?, new String[0])).collect(Collectors.toList()), ?, ?, ?, ?, ?);
  55. ?.c();
  56. }
  57.  
  58. public static gk a(Path ?, Collection<Path> ?, boolean ?, boolean ?, boolean ?, boolean ?, boolean ?) {
  59. gk ? = new gk(?, ?);
  60. if (? || ?) {
  61. ?.a((new hp(?))
  62. .a(new hq()));
  63. }
  64.  
  65. if (?) {
  66. ?.a(new hu(?));
  67. ?.a(new hs(?));
  68. ?.a(new hv(?));
  69. ?.a(new ht(?));
  70. ?.a(new hh(?));
  71. ?.a(new gn(?));
  72. ?.a(new hd(?));
  73. }
  74. if (?) {
  75. ?.a(new ho(?));
  76. }
  77. if (?) {
  78. ?.a(new gu(?));
  79. ?.a(new gw(?));
  80. ?.a(new gv(?));
  81. }
  82. return ?;
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement