-
-
Notifications
You must be signed in to change notification settings - Fork 0
Command Parser
Iuga Alexandru edited this page May 16, 2023
·
1 revision
The purpose of a Command Parser is to understand the syntax used by the user, parse the provided text and extract all important values, which are then stored in the Command Request Model objects.
- the command text (arguments) provided by the user in the console.
- it is obtained from .NET as an array of strings:
private static Main(string[] args)
- Uses a
ICommandParser
implementation to transform the arguments into aCommandRequest
object (part of the Command Request Model).
- A
CommandRequest
object containing a list of name-value pairs.