I want to be able to pass an argument with an optional value associated with it. For example, I want to be able to call my app in each of these scenarios:
No flag and no value
- app.exe -f
Flag (-f) but no value
- app.exe -f foo.txt
Flag (-f) and Value (foo.txt) were passed.
I am trying to use CommandLineParser to determine if the -f was passed and if it was is there a value associated with it.
any help is appreciated.