ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/xmlTools/trunk/posUpdate/ParametersParser.cs
(Generate patch)

Comparing xmlTools/trunk/posUpdate/ParametersParser.cs (file contents):
Revision 861 by s10k, Wed May 8 21:52:38 2013 UTC vs.
Revision 874 by s10k, Sat May 25 21:53:39 2013 UTC

# Line 106 | Line 106 | namespace xmlTools
106              List<string> filesToProcess = getFilesToProcess(globalFileName);
107              foreach (string currentFile in filesToProcess)
108              {
109 <                if (valPositions != null)
109 >                if (!String.IsNullOrEmpty(valPositions))
110                  {
111                      myTools.replaceAll(currentFile, value, valPositions);
112                  }
# Line 129 | Line 129 | namespace xmlTools
129          {
130              XmlPatch myPatch;
131  
132 <            if (forceInFiles != "")
132 >            if (!String.IsNullOrEmpty(forceInFiles))
133              {
134                  myPatch = new XmlPatch(globalFileName, forceInFiles, globalNoBackups);
135              }
# Line 141 | Line 141 | namespace xmlTools
141              myPatch.startPatch();
142          }
143  
144 <        [Verb]
144 >        [Verb(Description = "Displays current XmlTools version.")]
145          public static void version()
146          {
147 <            Console.WriteLine("xmlTools v" + Program.toolsVersion);
147 >            Console.WriteLine("xmlTools v" + Program.XmlToolsVersion);
148              Console.WriteLine("\nWritten by s10k");
149          }
150  
151 +        [Verb(Description = "Displays extra informations about XmlTools.")]
152 +        public static void about()
153 +        {
154 +            version();
155 +            Console.WriteLine();
156 +            Console.WriteLine("For extra XmlTools support check it page at: http://wiki.oni2.net/XmlTools");
157 +            Console.WriteLine();
158 +            Console.WriteLine("This program uses the following free libraries: ");
159 +            Console.WriteLine("-CLAP: for parameter parsing. (http://adrianaisemberg.github.io/CLAP/)");
160 +            Console.WriteLine("-IronJS: for custom javascript code execution. (https://github.com/fholm/IronJS)");
161 +            Console.WriteLine();
162 +            Console.WriteLine("A big thanks to all the oni.bungie.org community!");
163 +        }
164 +
165          [Verb]
166          public static void showErrTypes()
167          {
# Line 195 | Line 209 | namespace xmlTools
209          {
210              List<String> filesToProccess = new List<String>();
211  
212 <            if (filename == "") // No filename? Process everything xml file found.
212 >            if (String.IsNullOrEmpty(filename)) // No filename? Process everything xml file found.
213              {
214                  List<string> allXmlFiles = Util.getAllXmlFiles();
215                  foreach (String file in allXmlFiles)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)