Ejemplo n.º 1
0
        /**
         * Convert to String.
         *
         * @return the string value
         */
        public override String ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("[");
            char id = (char)m_descriptor.GetId();

            if (id == TEXT_ARGUMENT)
            {
                sb.Append("TEXT ");
            }
            else
            {
                sb.Append("Option ");
                sb.Append(id);
            }

            if (null != m_arguments)
            {
                sb.Append(", ");
                sb.Append(m_arguments.ToArray());
            }

            sb.Append(" ]");

            return(sb.ToString());
        }
Ejemplo n.º 2
0
 private String GetOptionDescription(CLOptionDescriptor descriptor)
 {
     if (m_isLong)
     {
         return("--" + descriptor.GetName());
     }
     else
     {
         return("-" + (char)descriptor.GetId());
     }
 }
Ejemplo n.º 3
0
 private String GetOptionDescription(CLOptionDescriptor descriptor)
 {
     if (m_isLong)
     {
         return "--" + descriptor.GetName();
     } else {
         return "-" + (char) descriptor.GetId();
     }
 }