-
Notifications
You must be signed in to change notification settings - Fork 0
ApplicationStartOptions
Lunar Doggo edited this page Jul 24, 2021
·
2 revisions
An instance of ApplicationStartOptions
is used by a StartOptionParser
and contains all information the parser needs to be operated: all StartOptionGroup
s, groupless StartOption
s, HelpOption
s and an instance of StartOptionParserSettings
.
Note: Make sure, you don't reuse neither short nor long start option names from the groupless StartOption
s as the name of a StartOptionGroup
or its subordinate StartOption
s. Because in this case the parser won't be able to decide if an occurance of a duplicate should be assigned to a groupless StartOption
or to the StartOptionGroup
, a NameConflictException
will be thrown.
public class ApplicationStartOptions
Signature | Description |
---|---|
public ApplicationStartOptions(IEnumerable<StartOptionGroup>, IEnumerable<StartOption>) |
Simplest constructor, should be used if you want to use the default HelpOption s and StartOptionParserSettings
|
public ApplicationStartOptions(IEnumerable<StartOptionGroup>, IEnumerable<StartOption>, IEnumerable<HelpOption>) |
Can be used to provide override the default HelpOption s and instead define custom ones |
public ApplicationStartOptions(IEnumerable<StartOptionGroup>, IEnumerable<StartOption>, IEnumerable<HelpOption>, StartOptionParserSettings) |
Can be used to provide custom HelpOption s and StartOptionParserSettings
|
Signature | Description |
---|---|
public StartOptionParserSettings StartOptionParserSettings { get; } |
StartOptionParserSettings the StartOptionParser should use |
public IEnumerable<StartOptionGroup> StartOptionGroups { get; } |
Enumeration of all StartOptionGroup s the StartOptionParser should be able to parse |
public IEnumerable<StartOption> GrouplessStartOptions { get; } |
Enumeration of all groupless StartOption s the StartOptionParser should be able to parse |
public IEnumerable<HelpOption> HelpOptions { get; } |
Enumeration of all HelpOptions the StartOptionParser should be able to parse and set the help requested flag accordingly |