+ // check options\r
+ if (opts[0] != '-') throw new ApplicationException("Options have to start with an '-'.");\r
+ for (int i=1; i<opts.Length; i++ ) {\r
+ switch (opts[i]) {\r
+ case 'v': verbose = true;\r
+ break;\r
+ default: throw new ApplicationException("Unknown options: "+opts[i]);\r
+ }\r
+ }\r
+ }\r
+ \r
+ Worker w = new Worker();\r
+ int ret = w.convert(file, template);\r