Skip to content

Fix typos in the BootstrapPaket target, comments and demo text. Ignore everything under .vs #495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ StyleCop.Cache
*.cache
docs/output/*
artifacts/*
.vs/*
*.xproj.user
*.nuget.targets
*.lock.json
*.nuget.props
*.DotSettings.user
# Visual Studio 2015 cache/options directory
.vs/

4 changes: 2 additions & 2 deletions demo/ReadText.Demo.VB/Options.vb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Public Interface IOptions
<[Option]("c"c, "bytes", SetName:="bybytes", HelpText:="Bytes to be printed from the beginning or end of the file.")>
Property Bytes As UInteger?

<[Option]("q"c, "quiet", HelpText:="Supresses summary messages.")>
<[Option]("q"c, "quiet", HelpText:="Suppresses summary messages.")>
Property Quiet As Boolean

<[Value](0, MetaName:="input file", Required:=True, HelpText:="Input file to be processed.")>
Expand All @@ -33,7 +33,7 @@ Public Class HeadOptions
Get
Yield New Example("normal scenario", New HeadOptions With {.FileName = "file.bin"})
Yield New Example("specify bytes", New HeadOptions With {.FileName = "file.bin", .Bytes = 100})
Yield New Example("supress summary", UnParserSettings.WithGroupSwitchesOnly(), New HeadOptions With {.FileName = "file.bin", .Quiet = True})
Yield New Example("suppress summary", UnParserSettings.WithGroupSwitchesOnly(), New HeadOptions With {.FileName = "file.bin", .Quiet = True})
Yield New Example("read more lines", New UnParserSettings() {UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly()}, New HeadOptions With {.FileName = "file.bin", .Lines = 10})
End Get
End Property
Expand Down
4 changes: 2 additions & 2 deletions demo/ReadText.Demo/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface IOptions
uint? Bytes { get; set; }

[Option('q', "quiet",
HelpText = "Supresses summary messages.")]
HelpText = "Suppresses summary messages.")]
bool Quiet { get; set; }

[Value(0, MetaName = "input file",
Expand All @@ -45,7 +45,7 @@ public static IEnumerable<Example> Examples
{
yield return new Example("normal scenario", new HeadOptions { FileName = "file.bin"});
yield return new Example("specify bytes", new HeadOptions { FileName = "file.bin", Bytes=100 });
yield return new Example("supress summary", UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
yield return new Example("suppress summary", UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
yield return new Example("read more lines", new[] { UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly() }, new HeadOptions { FileName = "file.bin", Lines = 10 });
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLine/CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
-->
<Target Name="BeforeBuild" DependsOnTargets="PaketInstall">
</Target>
<Target Name="BootstrapPaket" Condition="!Exists('$(SolutionDir).paket/paket.bootstrapper.exe)')">
<Target Name="BootstrapPaket" Condition="Exists('$(SolutionDir).paket/paket.bootstrapper.exe')">
<Exec Command="$(SolutionDir).paket/paket.bootstrapper.exe" />
</Target>
<Target Name="PaketInstall" DependsOnTargets="BootstrapPaket" Condition="!Exists('$(SolutionDir)paket-files')">
Expand Down
4 changes: 2 additions & 2 deletions src/CommandLine/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public ParserResult<T> ParseArguments<T>(IEnumerable<string> args)
/// Grammar rules are defined decorating public properties with appropriate attributes.
/// </summary>
/// <typeparam name="T">Type of the target instance built with parsed value.</typeparam>
/// <param name="factory">A <see cref="System.Func{T}"/> delegate used to intitalize the target instance.</param>
/// <param name="factory">A <see cref="System.Func{T}"/> delegate used to initialize the target instance.</param>
/// <param name="args">A <see cref="System.String"/> array of command line arguments, normally supplied by application entry point.</param>
/// <returns>A <see cref="CommandLine.ParserResult{T}"/> containing an instance of type <typeparamref name="T"/> with parsed values
/// and a sequence of <see cref="CommandLine.Error"/>.</returns>
Expand Down Expand Up @@ -143,7 +143,7 @@ public ParserResult<T> ParseArguments<T>(Func<T> factory, IEnumerable<string> ar
/// and a sequence of <see cref="CommandLine.Error"/>.</returns>
/// <exception cref="System.ArgumentNullException">Thrown if one or more arguments are null.</exception>
/// <exception cref="System.ArgumentOutOfRangeException">Thrown if <paramref name="types"/> array is empty.</exception>
/// <remarks>All types must expose a parameterless constructor. It's stronly recommended to use a generic overload.</remarks>
/// <remarks>All types must expose a parameterless constructor. It's strongly recommended to use a generic overload.</remarks>
public ParserResult<object> ParseArguments(IEnumerable<string> args, params Type[] types)
{
if (args == null) throw new ArgumentNullException("args");
Expand Down