An immutable class representing command-line arguments passed to an application.
More...
|
override string | ToString () |
| Returns the arguments stored in this instance. More...
|
|
| Arguments ([NotNull] string[] args) |
| Creates a new arguments instance based on the argument array from a Main method. More...
|
|
bool | Contains (string command) |
| Determines whether a specific command is contained in the arguments. More...
|
|
|
IEnumerable< string > | Files => _files |
| A list of all file names in the arguments. More...
|
|
IEnumerable< string > | Commands => _commands.Keys |
| A list of all commands without leading slash or hyphen in the arguments. More...
|
|
string this[[NotNull] string | command => _commands[command] |
| Gets the options for a specific command in the arguments. More...
|
|
An immutable class representing command-line arguments passed to an application.
◆ Arguments()
AlphaFramework.Presentation.Arguments.Arguments |
( |
[NotNull] string [] |
args | ) |
|
|
inline |
Creates a new arguments instance based on the argument array from a Main method.
- Parameters
-
args | The array of arguments. |
◆ Contains()
bool AlphaFramework.Presentation.Arguments.Contains |
( |
string |
command | ) |
|
Determines whether a specific command is contained in the arguments.
- Parameters
-
command | The command to check for. |
- Returns
- True if the command was set; false otherwise.
◆ ToString()
override string AlphaFramework.Presentation.Arguments.ToString |
( |
| ) |
|
Returns the arguments stored in this instance.
◆ command
string this[[NotNull] string AlphaFramework.Presentation.Arguments.command => _commands[command] |
Gets the options for a specific command in the arguments.
- Parameters
-
command | The command to get the options for. |
- Returns
- The options for command if any; null otherwise.
◆ Commands
IEnumerable<string> AlphaFramework.Presentation.Arguments.Commands => _commands.Keys |
A list of all commands without leading slash or hyphen in the arguments.
◆ Files
IEnumerable<string> AlphaFramework.Presentation.Arguments.Files => _files |
A list of all file names in the arguments.
The documentation for this class was generated from the following file:
- Presentation/Arguments.cs