1
0

Initial Commit

This commit is contained in:
2024-06-01 23:33:47 +02:00
commit 7b8550ee0f
11 changed files with 205 additions and 0 deletions

13
Test/Program.cs Normal file
View File

@ -0,0 +1,13 @@
using GlaxArguments;
Argument[] arguments =
[
new (["-t", "--test"], 0, "Test arg"),
new (["--test1"], 1, "Test arg with 1 parameter"),
new (["--test2"], 2, "Test arg with 2 parameters"),
new (["--test3"], 0, "Test arg")
];
ArgumentFetcher fetcher = new(arguments);
Dictionary<Argument, string[]> fetched = fetcher.Fetch("-h");
foreach(KeyValuePair<Argument, string[]> arg in fetched)
Console.WriteLine($"{arg.Key.Flags[0]} - {arg.Key.Description}\n\t{string.Join("\n", arg.Value)}");

14
Test/Test.csproj Normal file
View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\GlaxArguments\GlaxArguments.csproj" />
</ItemGroup>
</Project>