* add file path parameter to save-inv (in development)

0.6.0-stable
Justin Clarke Casey 2008-07-29 18:14:58 +00:00
parent d13c9161c9
commit 19a5e56d55
1 changed files with 3 additions and 2 deletions

View File

@ -670,17 +670,18 @@ namespace OpenSim
/// <param name="cmdparams"></param> /// <param name="cmdparams"></param>
protected void SaveInv(string[] cmdparams) protected void SaveInv(string[] cmdparams)
{ {
m_log.Error("[CONSOLE]: This has not been implemented yet!"); m_log.Error("[CONSOLE]: This command has not yet been implemented!");
if (cmdparams.Length < 3) if (cmdparams.Length < 3)
{ {
m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path>"); m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path> [<save file path>]");
return; return;
} }
string firstName = cmdparams[0]; string firstName = cmdparams[0];
string lastName = cmdparams[1]; string lastName = cmdparams[1];
string invPath = cmdparams[2]; string invPath = cmdparams[2];
string savePath = (cmdparams.Length > 3 ? cmdparams[3] : DEFAULT_INV_BACKUP_FILENAME);
UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName); UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName);
if (null == userProfile) if (null == userProfile)