Merged patch from mindtriggerz into TestClient

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@641 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
otakup0pe
2006-11-27 23:13:48 +00:00
parent 41c7c30b41
commit ed0b027328
4 changed files with 13 additions and 1469 deletions

View File

@@ -2,32 +2,20 @@ using System;
using System.Collections.Generic;
using System.Text;
using CommandLine;
namespace libsecondlife.TestClient
{
public class Program
{
[Argument(ArgumentType.Required, HelpText="First name of the SL account to log in with.")]
public string FirstName;
[Argument(ArgumentType.Required, HelpText="Last name of the SL account to log in with.")]
public string LastName;
[Argument(ArgumentType.Required, HelpText="Password of the SL account to log in with.")]
public string Password;
[Argument(ArgumentType.AtMostOnce, HelpText="Full account name to recieve IM commands from.")]
public string MasterName;
static void Main(string[] args)
{
Program program = new Program();
CommandLine.Parser.ParseArgumentsWithUsage(args, program);
TestClient testTool = new TestClient(program.FirstName, program.LastName, program.Password);
testTool.Master = program.MasterName;
public class Program
{
static void Main(string[] args)
{
if(args.Length < 3 || args.Length == 4)
{
Console.WriteLine("Usage: TestClient.ext firstname lastname password [master name]");
}
TestClient testTool = new TestClient(args[0], args[1], args[2]);
if(args.Length > 4) testTool.Master = args[3] + " " + args[4];
testTool.Run();
}
}
}
}