diff --git a/.gitignore b/.gitignore index 2f2f78c8..77b9880e 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/demo/ReadText.Demo.VB/Options.vb b/demo/ReadText.Demo.VB/Options.vb index eb87238f..3e492001 100644 --- a/demo/ReadText.Demo.VB/Options.vb +++ b/demo/ReadText.Demo.VB/Options.vb @@ -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.")> @@ -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 diff --git a/demo/ReadText.Demo/Options.cs b/demo/ReadText.Demo/Options.cs index 99f97208..ed4db350 100644 --- a/demo/ReadText.Demo/Options.cs +++ b/demo/ReadText.Demo/Options.cs @@ -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", @@ -45,7 +45,7 @@ public static IEnumerable 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 }); } } diff --git a/src/CommandLine/CommandLine.csproj b/src/CommandLine/CommandLine.csproj index 7b791726..854d5e4a 100644 --- a/src/CommandLine/CommandLine.csproj +++ b/src/CommandLine/CommandLine.csproj @@ -152,7 +152,7 @@ --> - + diff --git a/src/CommandLine/Parser.cs b/src/CommandLine/Parser.cs index 69a7e862..a1c5cbdf 100644 --- a/src/CommandLine/Parser.cs +++ b/src/CommandLine/Parser.cs @@ -108,7 +108,7 @@ public ParserResult ParseArguments(IEnumerable args) /// Grammar rules are defined decorating public properties with appropriate attributes. /// /// Type of the target instance built with parsed value. - /// A delegate used to intitalize the target instance. + /// A delegate used to initialize the target instance. /// A array of command line arguments, normally supplied by application entry point. /// A containing an instance of type with parsed values /// and a sequence of . @@ -143,7 +143,7 @@ public ParserResult ParseArguments(Func factory, IEnumerable ar /// and a sequence of . /// Thrown if one or more arguments are null. /// Thrown if array is empty. - /// All types must expose a parameterless constructor. It's stronly recommended to use a generic overload. + /// All types must expose a parameterless constructor. It's strongly recommended to use a generic overload. public ParserResult ParseArguments(IEnumerable args, params Type[] types) { if (args == null) throw new ArgumentNullException("args");