import java.io.File;
import java.io.IOException;
-import be.nikiroo.gofetch.support.BasicSupport.Type;
+import be.nikiroo.gofetch.support.Type;
/**
* This class is tha main entry point of the program. It will parse the
System.exit(1);
}
- // Selector base (empty is ok, DO NOT end with /)
+ // Selector base :
+ // - empty is ok
+ // - DO NOT end with /
+ // - always starts with / if not empty
String preselector = "";
if (preselectorStr != null && !preselectorStr.startsWith("/")) {
preselector = "/" + preselectorStr;
Type type = null;
if (!"ALL".equals(typeStr)) {
try {
- Type.valueOf(typeStr.toUpperCase());
+ type = Type.valueOf(typeStr.toUpperCase());
} catch (IllegalArgumentException e) {
System.err.println("Invalid type: " + typeStr);
System.exit(1);