Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jonpryor@vt.edu>2012-11-12 07:22:37 +0400
committerJonathan Pryor <jonpryor@vt.edu>2012-11-12 07:23:48 +0400
commit876d186bbb631c675d3cee92f2ee3b90a6e5fe3c (patch)
tree6c7d3c450b3dd52e830c47a23d1f84907e848406 /mcs/class/Mono.Options
parent2215ddac28d7ef3143f5e4dd5f0a6d688439ff8b (diff)
[Mono.Options] Add documentation for Option.Hidden.
Diffstat (limited to 'mcs/class/Mono.Options')
-rw-r--r--mcs/class/Mono.Options/Documentation/en/Mono.Options/Option.xml145
-rw-r--r--mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml139
2 files changed, 281 insertions, 3 deletions
diff --git a/mcs/class/Mono.Options/Documentation/en/Mono.Options/Option.xml b/mcs/class/Mono.Options/Documentation/en/Mono.Options/Option.xml
index 661c9a51b79..54923a89ad9 100644
--- a/mcs/class/Mono.Options/Documentation/en/Mono.Options/Option.xml
+++ b/mcs/class/Mono.Options/Documentation/en/Mono.Options/Option.xml
@@ -126,9 +126,9 @@
</para>
<para>
This is equivalent to calling the
- <see cref="C:Mono.Options.Option(System.String,System.String,System.Int32)" />
+ <see cref="C:Mono.Options.Option(System.String,System.String,System.Int32,System.Boolean)" />
constructor as with <c>Option(<paramref name="prototype" />,
- <paramref name="description" />, 1)</c>.
+ <paramref name="description" />, 1,false)</c>.
</para>
</remarks>
<exception cref="T:System.ArgumentException">
@@ -197,8 +197,120 @@
new instance using <paramref name="prototype" />, the
<see cref="P:Mono.Options.Option.Description" /> property of the
new instance using <paramref name="description" />. and
+ initializes the <see cref="P:Mono.Options.Option.MaxValueCount" />
+ property of the new instance to <c>1</c>.
+ </para>
+ <para>
+ This is equivalent to calling the
+ <see cref="C:Mono.Options.Option(System.String,System.String,System.Int32,System.Boolean)" />
+ constructor as with <c>Option(<paramref name="prototype" />,
+ <paramref name="description" />, <paramref name="maxValueCount" />, false)</c>.
+ </para>
+ </remarks>
+ <exception cref="T:System.ArgumentException">
+ <para>
+ <paramref name="prototype" /> is the empty string <c>""</c>.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="prototype" /> contains an empty alias, such as
+ <c>a||b</c>.
+ </para>
+ <para>-or-</para>
+ <para>
+ Conflicting <see cref="T:Mono.Options.OptionValueType" /> values
+ were found within <paramref name="prototype" />.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="maxValueCount" /> is <c>0</c> and
+ <paramref name="prototype" /> specified an
+ <see cref="T:Mono.Options.OptionValueType" /> value of
+ <see cref="F:Mono.Options.OptionValueType.Optional" /> or
+ <see cref="F:Mono.Options.OptionValueType.Required" />.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="maxValueCount" /> is greater than <c>1</c> and
+ <paramref name="prototype" /> specified an
+ <see cref="T:Mono.Options.OptionValueType" /> value of
+ <see cref="F:Mono.Options.OptionValueType.None" />.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="prototype" /> contains a separator list and
+ <paramref name="maxValueCount" /> is <c>0</c> or <c>1</c>.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="prototype" /> contains a badly formatted
+ separator list, such as <c>{{</c>, <c>}}</c>, <c>{{}</c>, etc.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="prototype" /> only includes the default handler
+ <c>&lt;&gt;</c> and <paramref name="prototype" /> did not specify an
+ <see cref="T:Mono.Options.OptionValueType" /> value of
+ <see cref="F:Mono.Options.OptionValueType.None" />.
+ </para>
+ <para>-or-</para>
+ <para>
+ <paramref name="prototype" /> includes the default handler
+ <c>&lt;&gt;</c>, and <paramref name="MaxValueCount" /> is greater
+ than <c>1</c>.
+ </para>
+ </exception>
+ <exception cref="T:System.ArgumentNullException">
+ <paramref name="prototype" /> is <see langword="null" />.
+ </exception>
+ </Docs>
+ </Member>
+ <Member MemberName=".ctor">
+ <MemberSignature Language="C#" Value="protected Option (string prototype, string description, int maxValueCount, bool hidden);" />
+ <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(string prototype, string description, int32 maxValueCount, bool hidden) cil managed" />
+ <MemberType>Constructor</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.2.3.0</AssemblyVersion>
+ </AssemblyInfo>
+ <Parameters>
+ <Parameter Name="prototype" Type="System.String" />
+ <Parameter Name="description" Type="System.String" />
+ <Parameter Name="maxValueCount" Type="System.Int32" />
+ <Parameter Name="hidden" Type="System.Boolean" />
+ </Parameters>
+ <Docs>
+ <param name="prototype">
+ A <see cref="T:System.String" /> containing a <c>|</c>-separated
+ list of option names (aliases) and an optional value-type specifier.
+ </param>
+ <param name="description">
+ A <see cref="T:System.String" /> containing documentation for the
+ option.
+ </param>
+ <param name="maxValueCount">
+ A <see cref="T:System.Int32" /> containing the number of values this
+ option accepts.
+ </param>
+ <param name="hidden">
+ A <see cref="T:System.Boolean" /> specifying whether or not the
+ Option should be displayed in
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />.
+ </param>
+ <summary>
+ Creates and initializes a new instance of the
+ <see cref="T:Mono.Options.Option" /> class.
+ </summary>
+ <remarks>
+ <para>
+ This constructor initializes the
+ <see cref="P:Mono.Options.Option.Prototype" /> property of the
+ new instance using <paramref name="prototype" />, the
+ <see cref="P:Mono.Options.Option.Description" /> property of the
+ new instance using <paramref name="description" />,
initializes the <see cref="P:Mono.Options.Option.MaxValueCount" />
- property of the new instance using <paramref name="maxValueCount" />.
+ property of the new instance using <paramref name="maxValueCount" />,
+ and initializes the <see cref="P:Mono.Options.Option.Hidden" />
+ property of the new instance using <paramref name="hidden" />.
</para>
<para>
<paramref name="prototype" /> is a <c>|</c>-separated list of
@@ -472,6 +584,33 @@
</remarks>
</Docs>
</Member>
+ <Member MemberName="Hidden">
+ <MemberSignature Language="C#" Value="public bool Hidden { get; }" />
+ <MemberSignature Language="ILAsm" Value=".property instance bool Hidden" />
+ <MemberType>Property</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.2.3.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>System.Boolean</ReturnType>
+ </ReturnValue>
+ <Docs>
+ <summary>
+ Whether
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />
+ should write this option.
+ </summary>
+ <value>
+ If <see langword="true" />, then
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />
+ will not print this option; otherwise,
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />
+ will write this option.
+ </value>
+ <remarks>
+ </remarks>
+ </Docs>
+ </Member>
<Member MemberName="Invoke">
<MemberSignature Language="C#" Value="public void Invoke (Mono.Options.OptionContext c);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Invoke(class Mono.Options.OptionContext c) cil managed" />
diff --git a/mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml b/mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml
index bddc27c5b67..67225ad7768 100644
--- a/mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml
+++ b/mcs/class/Mono.Options/Documentation/en/Mono.Options/OptionSet.xml
@@ -1402,6 +1402,136 @@ localization: hello:Could not convert string `not-an-int' to type Int32 for opti
</exception>
</Docs>
</Member>
+ <Member MemberName="Add">
+ <MemberSignature Language="C#" Value="public Mono.Options.OptionSet Add (string prototype, string description, Mono.Options.OptionAction&lt;string,string&gt; action, bool hidden);" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Mono.Options.OptionSet Add(string prototype, string description, class Mono.Options.OptionAction`2&lt;string, string&gt; action, bool hidden) cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.2.3.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>Mono.Options.OptionSet</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="prototype" Type="System.String" />
+ <Parameter Name="description" Type="System.String" />
+ <Parameter Name="action" Type="Mono.Options.OptionAction&lt;System.String,System.String&gt;" />
+ <Parameter Name="hidden" Type="System.Boolean" />
+ </Parameters>
+ <Docs>
+ <param name="prototype">
+ A <see cref="T:System.String" /> containing all option aliases to
+ register, an (optional) type specifier, and an (optional) value
+ separator list; see
+ <see cref="C:Mono.Options.Option(System.String,System.String,System.Int32)" />
+ for details.
+ </param>
+ <param name="description">
+ A <see cref="T:System.String" /> containing to used to initialize
+ the <see cref="P:Mono.Options.Option.Description" /> property.
+ </param>
+ <param name="action">
+ A <see cref="T:Mono.Options.OptionAction{System.String,System.String}" />
+ to invoke when an option is parsed.
+ </param>
+ <param name="hidden">
+ A <see cref="T:System.Boolean" /> specifying whether or not the
+ Option should be displayed in
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />.
+ </param>
+ <summary>
+ Registers each alias within <paramref name="prototype" /> so that any
+ options matching the aliases in <paramref name="prototype" /> will be
+ handled by <paramref name="action" /> during any subsequent
+ <see cref="M:Mono.Options.OptionSet.Parse(System.Collections.Generic.IEnumerable{System.String})" />
+ calls.
+ </summary>
+ <returns>
+ The current <see cref="T:Mono.Options.OptionSet" /> instance.
+ This is to permit method chaining.
+ </returns>
+ <remarks>
+ </remarks>
+ <altmember cref="M:Mono.Options.OptionSet.Add(Mono.Options.Option)" />
+ <exception cref="T:System.ArgumentException">
+ <paramref name="option" /> has an alias (as returned from
+ <see cref="M:Mono.Options.Option.GetNames" />) that conflicts with
+ a previously registered <see cref="T:Mono.Options.Option" />.
+ </exception>
+ <exception cref="T:System.ArgumentNullException">
+ <para>
+ <paramref name="prototype" /> is <see langword="null" /></para>
+ <para>-or-</para>
+ <para>
+ <paramref name="action" /> is <see langword="null" /></para>
+ </exception>
+ </Docs>
+ </Member>
+ <Member MemberName="Add">
+ <MemberSignature Language="C#" Value="public Mono.Options.OptionSet Add (string prototype, string description, Action&lt;string&gt; action, bool hidden);" />
+ <MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Mono.Options.OptionSet Add(string prototype, string description, class System.Action`1&lt;string&gt; action, bool hidden) cil managed" />
+ <MemberType>Method</MemberType>
+ <AssemblyInfo>
+ <AssemblyVersion>0.2.3.0</AssemblyVersion>
+ </AssemblyInfo>
+ <ReturnValue>
+ <ReturnType>Mono.Options.OptionSet</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ <Parameter Name="prototype" Type="System.String" />
+ <Parameter Name="description" Type="System.String" />
+ <Parameter Name="action" Type="System.Action&lt;System.String&gt;" />
+ <Parameter Name="hidden" Type="System.Boolean" />
+ </Parameters>
+ <Docs>
+ <param name="prototype">
+ A <see cref="T:System.String" /> containing all option aliases to
+ register, an (optional) type specifier, and an (optional) value
+ separator list; see
+ <see cref="C:Mono.Options.Option(System.String,System.String,System.Int32)" />
+ for details.
+ </param>
+ <param name="description">
+ A <see cref="T:System.String" /> containing to used to initialize
+ the <see cref="P:Mono.Options.Option.Description" /> property.
+ </param>
+ <param name="action">
+ A <see cref="T:System.Action{System.String}" />
+ to invoke when an option is parsed.
+ </param>
+ <param name="hidden">
+ A <see cref="T:System.Boolean" /> specifying whether or not the
+ Option should be displayed in
+ <see cref="M:Mono.Options.OptionSet.WriteOptionDescriptions" />.
+ </param>
+ <summary>
+ Registers each alias within <paramref name="prototype" /> so that any
+ options matching the aliases in <paramref name="prototype" /> will be
+ handled by <paramref name="action" /> during any subsequent
+ <see cref="M:Mono.Options.OptionSet.Parse(System.Collections.Generic.IEnumerable{System.String})" />
+ calls.
+ </summary>
+ <returns>
+ The current <see cref="T:Mono.Options.OptionSet" /> instance.
+ This is to permit method chaining.
+ </returns>
+ <remarks>
+ </remarks>
+ <altmember cref="M:Mono.Options.OptionSet.Add(Mono.Options.Option)" />
+ <exception cref="T:System.ArgumentException">
+ <paramref name="option" /> has an alias (as returned from
+ <see cref="M:Mono.Options.Option.GetNames" />) that conflicts with
+ a previously registered <see cref="T:Mono.Options.Option" />.
+ </exception>
+ <exception cref="T:System.ArgumentNullException">
+ <para>
+ <paramref name="prototype" /> is <see langword="null" /></para>
+ <para>-or-</para>
+ <para>
+ <paramref name="action" /> is <see langword="null" /></para>
+ </exception>
+ </Docs>
+ </Member>
<Member MemberName="Add&lt;T&gt;">
<MemberSignature Language="C#" Value="public Mono.Options.OptionSet Add&lt;T&gt; (string prototype, Action&lt;T&gt; action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Mono.Options.OptionSet Add&lt;T&gt;(string prototype, class System.Action`1&lt;!!T&gt; action) cil managed" />
@@ -2416,6 +2546,15 @@ class Test {
</summary>
<remarks>
<para>
+ Writes <see cref="T:Mono.Options.Option" /> documentation to
+ <paramref name="o" />.
+ </para>
+ <para>
+ If <see cref="P:Mono.Options.Option.Hidden" /> is
+ <see langword="true" />, then the Option will not be written to
+ <paramref name="o" />.
+ </para>
+ <para>
For each <see cref="T:Mono.Options.Option" /> previously added to
the current instance, this method writes out a comma-separated
list of all <see cref="M:Mono.Options.Option.GetNames" />