private static String getQuery(String[] args) {
        if (args.length<1) return null;
        if (args[0].equals("-h") || args[0].equals("-help")) return null;
        return args[0];
    }
Helper for computing metrics from the command line.
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/fieldmatch/Main.java