diff --git a/CmdArgs.cs b/CmdArgs.cs index 78cd539..0468147 100644 --- a/CmdArgs.cs +++ b/CmdArgs.cs @@ -38,7 +38,7 @@ namespace BlubbFish.Utils public ArgTouple(String type) { this.Type = type; - this.Data = ""; + this.Data = null; } public String Type { get; private set; } public String Data { get; private set; } @@ -100,7 +100,8 @@ namespace BlubbFish.Utils if (this.args.Length > i + 1) { arg.SetData(this.args[++i]); } else { - throw new ArgumentException(); + Console.WriteLine(this.GetUsageList("")); + throw new ArgumentException("Argument: "+this.args[i]+" missing second argument."); } } this.argList.Add(arg); @@ -142,11 +143,9 @@ namespace BlubbFish.Utils foreach (ArgTouple t in this.argList) { if (t.Type == name && t.Data != null) { return t.Data; - } else { - throw new ArgumentNullException(); } } - return null; + throw new ArgumentNullException(); } public Boolean HasAllRequiredArguments() diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 5681c06..cd49385 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Utils")] -[assembly: AssemblyCopyright("Copyright © 2014 - 15.05.2018")] +[assembly: AssemblyCopyright("Copyright © 2014 - 02.10.2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] +[assembly: AssemblyVersion("1.1.3")] +[assembly: AssemblyFileVersion("1.1.3")] diff --git a/bin/Release/Utils.dll b/bin/Release/Utils.dll index e55e051..d588c76 100644 Binary files a/bin/Release/Utils.dll and b/bin/Release/Utils.dll differ