I would like to create a .NET C# application that takes a few parameters as arguments but deduced by name similar to how dism.exe accepts it's arguments.
So for example I can run it in the following fashion :
myapp.exe /host:<host.com> /db:<db_test> /user:<username> /pass:<password>
myapp.exe /help
or it could be
myapp.exe --host <host.com> --db <db_test> --user <username> --pass <password>
myapp.exe --help
I've tried
static void Main(string[] args)
but this expects parameters like
myapp.exe <host.com> <db_test> <username> <password>
So the user might easily confuse the order
Any ideas if this is possible?