Renamed TestTool to TestClient
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@625 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
33
libsecondlife-cs/examples/TestClient/Program.cs
Normal file
33
libsecondlife-cs/examples/TestClient/Program.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
testTool.Run();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user