Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 697e2a8

Browse files
authored
Merge pull request #495 from ddv239/master
Fix typos in the BootstrapPaket target, comments and demo text. Ignore everything under .vs
2 parents 09677b1 + 8184b7a commit 697e2a8

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ StyleCop.Cache
3838
*.cache
3939
docs/output/*
4040
artifacts/*
41-
.vs/*
4241
*.xproj.user
4342
*.nuget.targets
4443
*.lock.json
4544
*.nuget.props
4645
*.DotSettings.user
46+
# Visual Studio 2015 cache/options directory
47+
.vs/
4748

‎demo/ReadText.Demo.VB/Options.vb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Public Interface IOptions
99
<[Option]("c"c, "bytes", SetName:="bybytes", HelpText:="Bytes to be printed from the beginning or end of the file.")>
1010
Property Bytes As UInteger?
1111

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

1515
<[Value](0, MetaName:="input file", Required:=True, HelpText:="Input file to be processed.")>
@@ -33,7 +33,7 @@ Public Class HeadOptions
3333
Get
3434
Yield New Example("normal scenario", New HeadOptions With {.FileName = "file.bin"})
3535
Yield New Example("specify bytes", New HeadOptions With {.FileName = "file.bin", .Bytes = 100})
36-
Yield New Example("supress summary", UnParserSettings.WithGroupSwitchesOnly(), New HeadOptions With {.FileName = "file.bin", .Quiet = True})
36+
Yield New Example("suppress summary", UnParserSettings.WithGroupSwitchesOnly(), New HeadOptions With {.FileName = "file.bin", .Quiet = True})
3737
Yield New Example("read more lines", New UnParserSettings() {UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly()}, New HeadOptions With {.FileName = "file.bin", .Lines = 10})
3838
End Get
3939
End Property

‎demo/ReadText.Demo/Options.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface IOptions
1818
uint? Bytes { get; set; }
1919

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

2424
[Value(0, MetaName = "input file",
@@ -45,7 +45,7 @@ public static IEnumerable<Example> Examples
4545
{
4646
yield return new Example("normal scenario", new HeadOptions { FileName = "file.bin"});
4747
yield return new Example("specify bytes", new HeadOptions { FileName = "file.bin", Bytes=100 });
48-
yield return new Example("supress summary", UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
48+
yield return new Example("suppress summary", UnParserSettings.WithGroupSwitchesOnly(), new HeadOptions { FileName = "file.bin", Quiet = true });
4949
yield return new Example("read more lines", new[] { UnParserSettings.WithGroupSwitchesOnly(), UnParserSettings.WithUseEqualTokenOnly() }, new HeadOptions { FileName = "file.bin", Lines = 10 });
5050
}
5151
}

‎src/CommandLine/CommandLine.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
-->
153153
<Target Name="BeforeBuild" DependsOnTargets="PaketInstall">
154154
</Target>
155-
<Target Name="BootstrapPaket" Condition="!Exists('$(SolutionDir).paket/paket.bootstrapper.exe)')">
155+
<Target Name="BootstrapPaket" Condition="Exists('$(SolutionDir).paket/paket.bootstrapper.exe')">
156156
<Exec Command="$(SolutionDir).paket/paket.bootstrapper.exe" />
157157
</Target>
158158
<Target Name="PaketInstall" DependsOnTargets="BootstrapPaket" Condition="!Exists('$(SolutionDir)paket-files')">

‎src/CommandLine/Parser.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public ParserResult<T> ParseArguments<T>(IEnumerable<string> args)
108108
/// Grammar rules are defined decorating public properties with appropriate attributes.
109109
/// </summary>
110110
/// <typeparam name="T">Type of the target instance built with parsed value.</typeparam>
111-
/// <param name="factory">A <see cref="System.Func{T}"/> delegate used to intitalize the target instance.</param>
111+
/// <param name="factory">A <see cref="System.Func{T}"/> delegate used to initialize the target instance.</param>
112112
/// <param name="args">A <see cref="System.String"/> array of command line arguments, normally supplied by application entry point.</param>
113113
/// <returns>A <see cref="CommandLine.ParserResult{T}"/> containing an instance of type <typeparamref name="T"/> with parsed values
114114
/// and a sequence of <see cref="CommandLine.Error"/>.</returns>
@@ -143,7 +143,7 @@ public ParserResult<T> ParseArguments<T>(Func<T> factory, IEnumerable<string> ar
143143
/// and a sequence of <see cref="CommandLine.Error"/>.</returns>
144144
/// <exception cref="System.ArgumentNullException">Thrown if one or more arguments are null.</exception>
145145
/// <exception cref="System.ArgumentOutOfRangeException">Thrown if <paramref name="types"/> array is empty.</exception>
146-
/// <remarks>All types must expose a parameterless constructor. It's stronly recommended to use a generic overload.</remarks>
146+
/// <remarks>All types must expose a parameterless constructor. It's strongly recommended to use a generic overload.</remarks>
147147
public ParserResult<object> ParseArguments(IEnumerable<string> args, params Type[] types)
148148
{
149149
if (args == null) throw new ArgumentNullException("args");

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /