(Exchange instance, String[] args)
| 56 | |
| 57 | |
| 58 | public static void InitOptions(Exchange instance, String[] args) { |
| 59 | |
| 60 | if (args.length > 0) { |
| 61 | for (String arg : args) { |
| 62 | if (arg.equals("--verbose")) { |
| 63 | verbose = true; |
| 64 | // instance.verbose = true; |
| 65 | } else if (arg.equals("--sandbox")) { |
| 66 | sandbox = true; |
| 67 | instance.setSandboxMode(true); |
| 68 | } else if (arg.equals("--demo")) { |
| 69 | demo = true; |
| 70 | // instance.setDemoMode(true); |
| 71 | instance.enableDemoTrading(true); |
| 72 | } else if (arg.equals("--no-keys")) { |
| 73 | noKeys = true; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | public static Object[] getParamsFromArgs(String[] args) { |
| 80 | ArrayList<Object> params = new ArrayList<Object>(); |
no test coverage detected