filmov
tv
Taking in command-line arguments in a .NET console application

Показать описание
Command-line arguments are a staple of most programming and scripting languages. In a strictly shell based environment, this type of project will function like a normal command-line executable, and can both show help messages on usage as well as take in varying input from the user.
There are some exceptions and some caveats, such as whether the file-name of the executable is the first member of the argument array, or what system parameters might be passed in and available for use.
Improper array checking is also common, and often leads to complete program halt rather than a recoverable error.
In this video, I will show you how to create a simple program that will take any number of command line arguments, and different ways of solving the validation problem.