+ private void ApplyOptions() {
+ foreach (string key in Options.Keys) {
+ switch(key) {
+ case "ShowTabs":
+ bool v = ParseBool(Options[key]);
+ wt.Tabs.ShowTabs = v;
+ break;
+ default:
+ Error("No variable {0}", key);
+ break;
+ }
+ }
+ }
+
+ private bool ParseBool(string v) {
+ switch(v.ToLower()) {
+ case "true":
+ case "t":
+ case "1":
+ case "on":
+ case "yes":
+ return true;
+ }
+ return false;
+ }
+
+ private void Error(string format, params object[] values) {
+ Console.WriteLine(format, values);
+ }
+