Skip to content

Commit 976955e

Browse files
committed
Add sample app
1 parent 36b974b commit 976955e

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

CommandLineParser.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ VisualStudioVersion = 15.0.28010.2016
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommandLineParser", "CommandLineParser\CommandLineParser.csproj", "{02D41856-3E21-427E-94C3-2AF34F1C2264}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommandLineParser.Tests", "CommandLineParser.Tests\CommandLineParser.Tests.csproj", "{72442EFD-1112-4081-A910-8A792F870AD1}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommandLineParser.Tests", "CommandLineParser.Tests\CommandLineParser.Tests.csproj", "{72442EFD-1112-4081-A910-8A792F870AD1}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp", "SampleApp\SampleApp.csproj", "{6871A016-97E8-48C5-B797-DD0FA3DD6288}"
911
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -21,6 +23,10 @@ Global
2123
{72442EFD-1112-4081-A910-8A792F870AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{72442EFD-1112-4081-A910-8A792F870AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{72442EFD-1112-4081-A910-8A792F870AD1}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{6871A016-97E8-48C5-B797-DD0FA3DD6288}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{6871A016-97E8-48C5-B797-DD0FA3DD6288}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{6871A016-97E8-48C5-B797-DD0FA3DD6288}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{6871A016-97E8-48C5-B797-DD0FA3DD6288}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

CommandLineParser/CommandLineParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public IParserResult<TSource> Parse(string[] args)
7272
continue;
7373
}
7474

75-
//var arg =
75+
var argument = lstArgs[idx];
7676
}
7777

7878
if (errors.Any())

SampleApp/Program.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
namespace SampleApp
4+
{
5+
class Program
6+
{
7+
static void Main(string[] args)
8+
{
9+
foreach (var arg in args)
10+
Console.WriteLine(arg);
11+
12+
Console.ReadKey();
13+
}
14+
}
15+
}

SampleApp/SampleApp.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp2.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

0 commit comments

Comments
 (0)