Add basic arguments validation
This commit is contained in:
@@ -9,9 +9,6 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenRA.Mods.Common.UtilityCommands
|
||||
{
|
||||
@@ -19,6 +16,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
{
|
||||
public string Name { get { return "--map-hash"; } }
|
||||
|
||||
public bool ValidateArguments(string[] args)
|
||||
{
|
||||
return args.Length >= 2;
|
||||
}
|
||||
|
||||
[Desc("MAPFILE", "Generate hash of specified oramap file.")]
|
||||
public void Run(ModData modData, string[] args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user