public void CreateSampleScript(TextWriter w) { w.WriteLine("# This is a sample configuration script for sammy."); w.WriteLine("# Uncomment the lines below to configure how sammy collects"); w.WriteLine("# your account statements."); w.WriteLine("# Check http://code.google.com/p/sammy/wiki/ConfigurationScript for details."); w.WriteLine(); Parser p = new Parser(this); foreach (Cmd.Action i in p.Actions) { i.PrintScriptFileSample(w); } foreach (Option i in p.Options) { i.PrintScriptFileSample(w); } w.WriteLine("# Collector plugins"); w.WriteLine(); foreach (Type i in CollectorPlugins) { string u = Usage.Get(i); if (u != null) { w.Write("# "); w.WriteLine(u); w.Write("# "); w.WriteLine(Collectors.Syntax(i)); w.WriteLine(); } } }