Skip to content

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.

Input Data

  • 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)

Execution

  • Uses a ICommandParser implementation to transform the arguments into a CommandRequest object (part of the Command Request Model).

Result

  • A CommandRequest object containing a list of name-value pairs.