2006-11-22 00:09:31 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2006-11-22 08:20:02 +00:00
|
|
|
using CommandLine;
|
|
|
|
|
|
2006-11-24 22:27:15 +00:00
|
|
|
namespace libsecondlife.TestClient
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
2006-11-22 08:20:02 +00:00
|
|
|
public class Program
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
2006-11-22 08:20:02 +00:00
|
|
|
[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;
|
|
|
|
|
|
2006-11-22 00:09:31 +00:00
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2006-11-22 08:20:02 +00:00
|
|
|
Program program = new Program();
|
|
|
|
|
CommandLine.Parser.ParseArgumentsWithUsage(args, program);
|
2006-11-22 00:09:31 +00:00
|
|
|
|
2006-11-24 22:27:15 +00:00
|
|
|
TestClient testTool = new TestClient(program.FirstName, program.LastName, program.Password);
|
2006-11-22 08:20:02 +00:00
|
|
|
testTool.Master = program.MasterName;
|
2006-11-22 00:09:31 +00:00
|
|
|
testTool.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|