I'm looking for a way that I can parse command line arguments into my WPF application with just a way of reading the value of the argument that the user passed.

As an example

```
application.exe /setTime 5

```

is there a way for me to have some code where I can just say:

```
MessageBox.Show(arg("setTime"));

```

Which will output `5`

**Working Solution**

[How to create smart WPF Command Line Arguments](http://sa.ndeep.me/post/how-to-create-smart-wpf-command-line-arguments)