import java.io.File;
import com.xmlmind.w2x.processor.Processor;

public class Embed1 {
    public static void main(String[] args) 
        throws Exception {
        Processor processor = new Processor();

        int l = processor.configure(args);

        File inFile = null;
        File outFile = null;
        if (l+2 == args.length) {
            inFile = new File(args[l]);
            outFile = new File(args[l+1]);
        } else {
            System.exit(1);
        }

        processor.process(inFile, outFile, /*progress monitor*/ null);
    }
}
