Summary
In this chapter, we explored what lies at the core of a CLI application: a console application! This is why it is crucial to learn how to work with console applications, as they are the foundation for building more complex CLI applications.
We saw how we can execute a console application, providing values as input parameters and parsing these input parameters’ values in order to convert them into the data type expected by our program. We saw how we can gather user inputs through the use of the ReadKey
and ReadLine
methods of the Console
class. Finally, we saw how we can handle exceptions raised as the result of a missing input parameter value.
However, a CLI application is more than a console one. It contains named parameters, flags, and subcommands.
In the upcoming chapters, we will see how we can leverage these capabilities into a fully functional CLI application. In the next chapter, we will start by creating the CLI application and learning how to parse...