package cs451.parser;

import java.io.File;

public class OutputParser {

    private static final String OUTPUT_KEY = "--output";

    private String path;

    public boolean populate(String key, String value) {
        if (!key.equals(OUTPUT_KEY)) {
            return false;
        }

        File file = new File(value);
        path = file.getPath();
        return true;
    }

    public String getPath() {
        return path;
    }

}
