public static string setName(string pCmd, string pName)
 {
     string[] args = ToolString.explodeList(partsSep, pCmd);
     if (args.Length > 0)
     {
         args[0] = pName;
     }
     return(ToolString.joinList(partsSep, args));
 }
        public static string setArgValue(string pCmdLine, string pCmdArgName, string pCmdArgValue)
        {
            string[] args = ToolString.explodeList(partsSep, pCmdLine);
            for (int i = 0; i < args.Length; ++i)
            {
                ArguemntItem item_ = ArguemntItem.parse(args[i]);
                if (item_.name.ToLowerInvariant() == pCmdArgName.ToLowerInvariant())
                {
                    args[i] = ArguemntItem.format(new ArguemntItem(pCmdArgName, pCmdArgValue));
                    return(ToolString.joinList(partsSep, args));
                }
            }

            return(addArgValue(pCmdLine, pCmdArgName, pCmdArgValue));
        }