Skip to content

Commit

Permalink
Fixed a bug in command line parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbnswartz committed Jul 23, 2020
1 parent 3105074 commit c8b5ab4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FontIndexer/CommandLineArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace FontIndexer
{
class CommandLineArguments
public class CommandLineArguments
{
[Option("source", Required = true, HelpText = "Source directory")]
public string SourceDirectory { get; set; }
Expand Down
1 change: 1 addition & 0 deletions FontIndexer/FontIndexer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion FontIndexer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Program
static char[] IgnoredChars = new[] { (char)160 };
static void Main(string[] args)
{
CommandLine.Parser.Default.ParseArguments(args).WithParsed<CommandLineArguments>((arguments) =>
CommandLine.Parser.Default.ParseArguments<CommandLineArguments>(args).WithParsed<CommandLineArguments>((arguments) =>
{
var files = GetFiles(arguments.SourceDirectory, arguments.Recursive);
var mapping = CreateMapping(files);
Expand Down

0 comments on commit c8b5ab4

Please sign in to comment.