Skip to content

Commit

Permalink
Argument.Parse made public
Browse files Browse the repository at this point in the history
  • Loading branch information
j-maly committed Oct 13, 2017
1 parent f887799 commit d3be1f7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/CommandLineArgumentsParser/Arguments/Argument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public void AddAlias(string alias)
/// <remarks>It is up to the argument class how many words it will consume from the command line.
/// At the end, it should just point the <paramref name="i"/> index to the correct place where the
/// argument class passes the control back to the <see cref="CommandLineParser"/></remarks>
internal virtual void Parse(IList<string> args, ref int i)
public virtual void Parse(IList<string> args, ref int i)
{
//check for invalid multiple occurences
if (Parsed && !AllowMultiple)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected CertifiedValueArgument(char shortName, string longName, string descrip
/// <param name="i">index to the args array, where this argument occured. The index to the next argument
/// after the argument is processed. </param>
/// <seealso cref="ValueArgument{TValue}.ConvertValueHandler"/>
internal override void Parse(IList<string> args, ref int i)
public override void Parse(IList<string> args, ref int i)
{
base.Parse(args, ref i);
if (AllowMultiple)
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLineArgumentsParser/Arguments/SwitchArgument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public SwitchArgument(char shortName, string longName, string description, bool
/// </summary>
/// <param name="args">command line arguments</param>
/// <param name="i">index to the args array, where this argument occurred. </param>
internal override void Parse(IList<string> args, ref int i)
public override void Parse(IList<string> args, ref int i)
{
base.Parse(args, ref i);
Value = !Value;
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLineArgumentsParser/Arguments/ValueArgument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void AddToValues(object value)
/// <seealso cref="ConvertValueHandler"/>
/// <exception cref="CommandLineArgumentException">Incorrect format of the command line
/// or multiple useage of an argument that is not <see cref="Argument.AllowMultiple"/> found.</exception>
internal override void Parse(IList<string> args, ref int i)
public override void Parse(IList<string> args, ref int i)
{
base.Parse(args, ref i);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<RootNamespace>CommandLineParser</RootNamespace>
<Version>3.0.15</Version>
<AssemblyVersion>3.0.15.0</AssemblyVersion>
<FileVersion>3.0.15.0</FileVersion>
<Version>3.0.18</Version>
<AssemblyVersion>3.0.18.0</AssemblyVersion>
<FileVersion>3.0.18.0</FileVersion>
<DebugType>portable</DebugType>
<!--<SignAssembly>True</SignAssembly>-->
<AssemblyOriginatorKeyFile>CommandLineArgumentsParser.pfx</AssemblyOriginatorKeyFile>
Expand Down

0 comments on commit d3be1f7

Please sign in to comment.