16 lines
332 B
Java
16 lines
332 B
Java
package de.opcua.app.service;
|
|
|
|
public enum AppMode {
|
|
UI,
|
|
SERVICE;
|
|
|
|
public static AppMode fromArgs(String[] args) {
|
|
if (args == null) return UI;
|
|
for (String a : args) {
|
|
if (a == null) continue;
|
|
if (a.equalsIgnoreCase("--service") || a.equalsIgnoreCase("service")) return SERVICE;
|
|
}
|
|
return UI;
|
|
}
|
|
}
|