Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 70d9929

Browse files
committed
Added some more help in the argument parser
1 parent a53e703 commit 70d9929

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

BisimulationRelationObtainer/Program.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using BisimulationRelationObtainer.Models;
33
using System;
44
using CommandLine;
5+
using CommandLine.Text;
56

67
namespace BisimulationRelationObtainer
78
{
@@ -20,6 +21,17 @@ public class Options
2021
public string QProcess { get; set; }
2122
[Option('o', "obtainer", Required = true, HelpText = "What obtainer to use. [Naive, HopcroftKarp]", Default = "Naive")]
2223
public string Obtainer { get; set; }
24+
25+
[Usage(ApplicationAlias = "BisimulationRelationObtainer")]
26+
public static IEnumerable<Example> Examples
27+
{
28+
get
29+
{
30+
return new List<Example>() {
31+
new Example("Find the bisimulation between two process files with a naive algorithm", new Options { PProcess = "file1.dfa", QProcess = "file2.dfa", Obtainer = "Naive" })
32+
};
33+
}
34+
}
2335
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
2436
}
2537

0 commit comments

Comments
 (0)