Add basic arguments validation

This commit is contained in:
Herve-M
2015-09-20 19:22:21 +02:00
parent c79f5a20a5
commit 1485dd1675
24 changed files with 146 additions and 53 deletions

View File

@@ -9,10 +9,8 @@
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace OpenRA.Mods.Common.UtilityCommands
{
@@ -20,6 +18,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
public string Name { get { return "--upgrade-mod"; } }
public bool ValidateArguments(string[] args)
{
return args.Length >= 2;
}
[Desc("CURRENTENGINE", "Upgrade mod rules to the latest engine version.")]
public void Run(ModData modData, string[] args)
{